From b61053d8b35629a82755cbe648c1af31918dee8d Mon Sep 17 00:00:00 2001 From: "cloudcannon[bot]" <111820006+cloudcannon[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 15:41:14 -0800 Subject: [PATCH] Update Membership Page (#599) * Updated 1 file via CloudCannon. * Added 1 file via CloudCannon. * Updated 1 file via CloudCannon. * Updated 1 file via CloudCannon. * Updated 2 files via CloudCannon. * Updated 1 file via CloudCannon. * Updated 1 file via CloudCannon. * Updated 1 file via CloudCannon. * Updated 1 file via CloudCannon. * Updated 1 file via CloudCannon. * Add a hasMembersAtLevel filter and use it. --------- Co-authored-by: Gracie Gregory Co-authored-by: Adam Harvey --- .eleventy.js | 9 ++ _includes/memberslist.njk | 134 ++++++++++-------- css/index.css | 10 +- ...echx-summit-2024-bosch.md => new-event.md} | 4 +- members/shopify.md | 6 - 5 files changed, 87 insertions(+), 76 deletions(-) rename events/{rusttechx-summit-2024-bosch.md => new-event.md} (80%) delete mode 100644 members/shopify.md diff --git a/.eleventy.js b/.eleventy.js index b0e1d830b..478b50634 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -49,6 +49,15 @@ module.exports = function(eleventyConfig) { return new Date(); }); + eleventyConfig.addFilter("hasMembersAtLevel", function (memberslist, level) { + for (const member of memberslist) { + if (member.data.status !== "suspended" && member.data.level === level) { + return true; + } + } + + return false; + }); eleventyConfig.addCollection("tagList", function(collection) { let tagSet = new Set(); diff --git a/_includes/memberslist.njk b/_includes/memberslist.njk index 927bc6f43..50e0a7ca0 100644 --- a/_includes/memberslist.njk +++ b/_includes/memberslist.njk @@ -1,72 +1,80 @@

Platinum

- +{% endif %} diff --git a/css/index.css b/css/index.css index 764551b5e..d16d62196 100644 --- a/css/index.css +++ b/css/index.css @@ -451,7 +451,7 @@ footer .container { width: 20em; display: inline-block; margin: 0.5em; -} +} .memberslist li.goldmember { position: relative; @@ -525,15 +525,15 @@ footer .container { .silvermember img { width: 10em; } + +.goldmember img { + width: 15em; +} .platinummember img { width: 20em; } -.goldmember img { - width: 15em; -} - .donorslist { text-align: center; } diff --git a/events/rusttechx-summit-2024-bosch.md b/events/new-event.md similarity index 80% rename from events/rusttechx-summit-2024-bosch.md rename to events/new-event.md index a9890d9a4..40b4f9171 100644 --- a/events/rusttechx-summit-2024-bosch.md +++ b/events/new-event.md @@ -1,5 +1,5 @@ --- -title: RustTechX Summit 2024 BOSCH +title: 'RustTechX Summit 2024 BOSCH ' description: >- RustTechX, is being organized by BOSCH, on November 28th at 3:30 PM IST (11:00 AM CET). This summit is an incredible opportunity for presenters to showcase @@ -11,4 +11,4 @@ layout: layouts/event.njk --- RustTechX, is being organized by BOSCH, on November 28th at 3:30 PM IST (11:00 AM CET) in Bangalore, India. This summit is an incredible opportunity for presenters to showcase their work on any Rust-related topic that can make a real impact. -Learn more and register here: https://hasgeek.com/rustbangalore/rusttechx-summit-2024-bosch/ \ No newline at end of file +Learn more and register here: [https://hasgeek.com/rustbangalore/rusttechx-summit-2024-bosch/]() \ No newline at end of file diff --git a/members/shopify.md b/members/shopify.md deleted file mode 100644 index e71106710..000000000 --- a/members/shopify.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -name: Shopify -level: gold -logo: /img/member/shopify.png -url: https://www.shopify.com/ ----