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