joshua.seigler.net/site/_includes/collection.njk
2025-07-03 01:10:48 -04:00

24 lines
514 B
Text

---
layout: "base.njk"
eleventyComputed:
tag: "{{ page.fileSlug }}"
title: "{{ tag | capitalize }}"
rssUrl: "
{%- if tag != 'music' -%}
/feeds/{{tag}}.xml
{%- endif -%}
"
---
{%- from "components/collectionList.njk" import collectionList with context -%}
<main>
<section data-pagefind-body>
{{ content | safe }}
</section>
{% if collections[tag] %}
{% if tag === "posts" %}
{% include "-taglist.njk" %}
{% endif %}
{{ collectionList(tag) }}
{% endif %}
</main>