fix: feed cleanup

This commit is contained in:
Cory Dransfeldt 2023-09-19 17:32:20 -07:00
parent 7133b3d589
commit 94f77a46dd
No known key found for this signature in database
7 changed files with 13 additions and 10 deletions

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
{% assign entries = data | normalizeEntries -%}
<title>{{ title }}</title>
<description>{{ description }}</description>
<link>{{ permalink | absoluteUrl: site.url }}</link>
<image>
<title>{{ title }}</title>
<link>{{ permalink | absoluteUrl: site.url }}</link>
<url>{{ site.url }}/assets/icons/feed-icon.png</url>
<width>144</width>
<height>144</height>
</image>
{% for entry in entries limit: 20 -%}
<item>
<title>{{ entry.title | escape }}</title>
<link>{{ entry.url | stripUtm | encodeAmp }}</link>
<guid>{{ entry.url | stripUtm | encodeAmp }}</guid>
<description>{{ entry.excerpt | markdown | escape }}</description>
</item>
{%- endfor %}
</channel>
</rss>