diff --git a/_config/filters.js b/_config/filters.js index 91d273f..a985b1d 100644 --- a/_config/filters.js +++ b/_config/filters.js @@ -9,7 +9,7 @@ export default function (eleventyConfig) { eleventyConfig.addFilter("getYear", (target) => { if (target.data.tags.includes("2024")) return "2024"; if (target.data.tags.includes("2025")) return "2025"; - if (target.data.tags.includes("2026-2027")) return "2026-2027"; + if (target.data.tags.includes("2026")) return "2026-2027"; }); /* Return n elements from a list */ diff --git a/_includes/zines.njk b/_includes/zines.njk index 1273ae4..3bc4fa7 100644 --- a/_includes/zines.njk +++ b/_includes/zines.njk @@ -12,17 +12,21 @@ {% endif %} - {% if zine.data.titles.length == 1 %} -

made a {{ zine.data.format }} zine called...

-

{{ zine.data.titles }}

+ {% if zine.data.titles %} + {% if zine.data.titles.length == 1 %} +

made a {{ zine.data.format }} zine called...

+

{{ zine.data.titles }}

+ {% else %} +

made {{ zine.data.format }} zines called...

+ {% for title in zine.data.titles %} +

{{ title }}

+ {% endfor %} + {% endif %} +

and the original blurb was...

{% else %} -

made {{ zine.data.format }} zines called...

- {% for title in zine.data.titles %} -

{{ title }}

- {% endfor %} +

is planning a {{ zine.data.format }} zine...

{% endif %} -

and the original blurb was...

{{ zine.content | safe }}
{% endfor %}