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 */
|
||||||
|
|||||||
+12
-8
@@ -12,17 +12,21 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{% if zine.data.titles.length == 1 %}
|
{% if zine.data.titles %}
|
||||||
<p>made a {{ zine.data.format }} zine called...</p>
|
{% if zine.data.titles.length == 1 %}
|
||||||
<h3>{{ zine.data.titles }}</h3>
|
<p>made a {{ zine.data.format }} zine called...</p>
|
||||||
|
<h3>{{ zine.data.titles }}</h3>
|
||||||
|
{% else %}
|
||||||
|
<p>made {{ zine.data.format }} zines called...</p>
|
||||||
|
{% for title in zine.data.titles %}
|
||||||
|
<h3>{{ title }}</h3>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
<p>and the original blurb was...</p>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>made {{ zine.data.format }} zines called...</p>
|
<p>is planning a {{ zine.data.format }} zine...</p>
|
||||||
{% for title in zine.data.titles %}
|
|
||||||
<h3>{{ title }}</h3>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p>and the original blurb was...</p>
|
|
||||||
<blockquote>{{ zine.content | safe }}</blockquote>
|
<blockquote>{{ zine.content | safe }}</blockquote>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user