diff --git a/_includes/contributor-carousel-selection.html b/_includes/contributor-carousel-selection.html index 115e9f8..1ca510f 100644 --- a/_includes/contributor-carousel-selection.html +++ b/_includes/contributor-carousel-selection.html @@ -1,5 +1,5 @@ {%- assign carousel_counter = carousel_counter | plus: 1 %} -{%- assign contributors_lookup = site.data.CONTRIBUTORS %} +{%- assign contributors_lookup = site.data.contributors | default: site.data.CONTRIBUTORS -%} {%- assign allcontrstr = nil %} {%- assign nr = include.col | default: 4 %} {%- if include.custom %} diff --git a/_includes/contributor-minitiles-page.html b/_includes/contributor-minitiles-page.html index c0317d7..fe8219b 100644 --- a/_includes/contributor-minitiles-page.html +++ b/_includes/contributor-minitiles-page.html @@ -1,4 +1,4 @@ -{%- assign contributors_lookup = site.data.CONTRIBUTORS %} +{%- assign contributors_lookup = site.data.contributors | default: site.data.CONTRIBUTORS -%} {%- unless include.sort == false %} {%- assign name_list = include.contributors_list | sort %} {%- else %} diff --git a/_includes/contributor-tiles-all.html b/_includes/contributor-tiles-all.html index 9ffe6e2..cc827bf 100644 --- a/_includes/contributor-tiles-all.html +++ b/_includes/contributor-tiles-all.html @@ -1,4 +1,4 @@ -{%- assign contributors_lookup = site.data.CONTRIBUTORS %} +{%- assign contributors_lookup = site.data.contributors | default: site.data.CONTRIBUTORS -%} {%- assign allcontrstr = nil %} {%- assign nr = include.col | default: 4 %} {%- if include.custom %} diff --git a/_includes/events.html b/_includes/events.html index cc71a7e..1e3f64d 100644 --- a/_includes/events.html +++ b/_includes/events.html @@ -2,8 +2,12 @@ {%- if include.title == true%}

{{include.event_type | replace: "_", " " | capitalize}}s

{%- endif %} + {%- if include.related_pages %} + {%- assign filtered = site.data.events | where_exp: "event", "event.related_pages contains include.related_pages" %} + {%- assign events = filtered | sort: "startDate" | reverse %} + {%- else %} {%- assign events = site.data.events | sort: "startDate" | reverse %} - {%- assign count = 0 %} + {%- endif %}