rss for every category

This commit is contained in:
Joshua Seigler 2025-07-02 02:10:05 -04:00
parent cd6347f8c2
commit 4480aeed3c
12 changed files with 89 additions and 88 deletions

View file

@ -1,7 +1,17 @@
---
layout: "base.njk"
eleventyComputed:
title: "{{ page.fileSlug | capitalize }}"
tag: "{{ page.fileSlug }}"
title: "{{ tag | capitalize }}"
rssUrl: "
{%- if tag == 'posts' -%}
/feed.xml
{%- else -%}
{%- if tag != 'music' -%}
/feeds/{{tag}}
{%- endif -%}
{%- endif -%}
"
---
{%- from "components/collectionList.njk" import collectionList with context -%}
@ -9,11 +19,10 @@ eleventyComputed:
<section data-pagefind-body>
{{ content | safe }}
</section>
{% set tag = page.fileSlug %}
{% if collections[tag] %}
{% if tag === "posts" %}
{% include "-taglist.njk" %}
{% endif %}
{{ collectionList(tag) }}
{% endif %}
</main>
</main>