rss for every category
This commit is contained in:
parent
cd6347f8c2
commit
0dde8aff3d
12 changed files with 90 additions and 88 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue