fix: feed cleanup
This commit is contained in:
parent
7133b3d589
commit
94f77a46dd
7 changed files with 13 additions and 10 deletions
24
src/_includes/partials/feeds/rss.liquid
Normal file
24
src/_includes/partials/feeds/rss.liquid
Normal 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>
|
Reference in a new issue