fix: RSS feed
This commit is contained in:
parent
1a5368a1e3
commit
b82a8ff619
1 changed files with 5 additions and 7 deletions
12
src/rss.njk
12
src/rss.njk
|
@ -3,9 +3,7 @@ permalink: /rss.xml
|
||||||
layout: null
|
layout: null
|
||||||
eleventyExcludeFromCollections: true
|
eleventyExcludeFromCollections: true
|
||||||
excludeFromSitemap: true
|
excludeFromSitemap: true
|
||||||
---
|
---<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||||
<title>{{ meta.siteName }}</title>
|
<title>{{ meta.siteName }}</title>
|
||||||
<subtitle>{{ meta.siteDescription }}</subtitle>
|
<subtitle>{{ meta.siteDescription }}</subtitle>
|
||||||
|
@ -22,7 +20,7 @@ excludeFromSitemap: true
|
||||||
<link href="{{ meta.url }}{{ post.url }}" />
|
<link href="{{ meta.url }}{{ post.url }}" />
|
||||||
<pubDate>{{ post.date }}</pubDate>
|
<pubDate>{{ post.date }}</pubDate>
|
||||||
{%- for tag in post.data.tags %}<category term="{{ tag }}" />{%- endfor %}
|
{%- for tag in post.data.tags %}<category term="{{ tag }}" />{%- endfor %}
|
||||||
<content type="html">{{ post.content | escape }}</content>
|
<content type="html">{{ post.content | escape }}</content>
|
||||||
</entry>
|
</entry>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</feed>
|
</feed>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue