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 -%} + -
+