generated from inherentlee/11ty
prep for zine functionality
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ export default function (eleventyConfig) {
|
|||||||
eleventyConfig.addFilter("getYear", (target) => {
|
eleventyConfig.addFilter("getYear", (target) => {
|
||||||
if (target.data.tags.includes("2024")) return "2024";
|
if (target.data.tags.includes("2024")) return "2024";
|
||||||
if (target.data.tags.includes("2025")) return "2025";
|
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 */
|
/* Return n elements from a list */
|
||||||
|
|||||||
+5
-1
@@ -12,6 +12,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
{% if zine.data.titles %}
|
||||||
{% if zine.data.titles.length == 1 %}
|
{% if zine.data.titles.length == 1 %}
|
||||||
<p>made a {{ zine.data.format }} zine called...</p>
|
<p>made a {{ zine.data.format }} zine called...</p>
|
||||||
<h3>{{ zine.data.titles }}</h3>
|
<h3>{{ zine.data.titles }}</h3>
|
||||||
@@ -21,8 +22,11 @@
|
|||||||
<h3>{{ title }}</h3>
|
<h3>{{ title }}</h3>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p>and the original blurb was...</p>
|
<p>and the original blurb was...</p>
|
||||||
|
{% else %}
|
||||||
|
<p>is planning a {{ zine.data.format }} zine...</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<blockquote>{{ zine.content | safe }}</blockquote>
|
<blockquote>{{ zine.content | safe }}</blockquote>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user