This repository has been archived on 2025-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
coryd.dev-eleventy/src/_includes/partials/feeds/content.liquid
2023-09-19 13:38:21 -07:00

24 lines
No EOL
840 B
Text

<?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>