From eb21658b3735cbf51a20088a20d09966eeb248a2 Mon Sep 17 00:00:00 2001 From: Nasir Anthony Montalvo Date: Sat, 31 Jan 2026 01:01:09 -0600 Subject: [PATCH] hamburger menu and mobile changes --- .github/_includes/collection-banner.html | 388 ++++++++++++++++++++--- _data/config-nav.csv | 2 +- _includes/collection-banner.html | 29 +- _sass/_custom.scss | 104 ++++++ 4 files changed, 473 insertions(+), 50 deletions(-) diff --git a/.github/_includes/collection-banner.html b/.github/_includes/collection-banner.html index 73a0d40..acfcf56 100644 --- a/.github/_includes/collection-banner.html +++ b/.github/_includes/collection-banner.html @@ -1,70 +1,378 @@ -{% if page.layout == "home-infographic" and site.data.theme.featured-image %} +{% if page.layout == "home-infographic" %} + +{%- comment -%} +Carousel Banner: rotates through random collection items +Always shows starlacoll033 first, then shuffles other items +{%- endcomment -%} + +{%- assign carousel_items = "" | split: "" -%} + +{%- comment -%} Get specific items in order {%- endcomment -%} +{%- assign wanted_ids = "starlacoll033,garycoll009,garycoll005,starlacoll019,starlacoll008,tishacoll006" | split: "," -%} + +{%- for wanted_id in wanted_ids -%} + {%- for item in site.data[site.metadata] -%} + {%- if item.objectid == wanted_id -%} + {%- assign carousel_items = carousel_items | push: item -%} + {%- break -%} + {%- endif -%} + {%- endfor -%} +{%- endfor -%} + -
+