chore: add images to feed entries if available

This commit is contained in:
Cory Dransfeldt 2024-08-12 08:49:01 -07:00
parent e33a961ba3
commit e8a03dbc7c
No known key found for this signature in database
5 changed files with 59 additions and 30 deletions

View file

@ -27,6 +27,9 @@
<link>{{ entry.url | encodeAmp }}</link>
<pubDate>{{ entry.date | stringToRFC822Date }}</pubDate>
<guid isPermaLink="false">{{ entry.url | encodeAmp }}</guid>
{%- if entry.image -%}
<enclosure url="https://cdn.coryd.dev{{ entry.image }}?class=w800" type="image/jpeg" />
{%- endif -%}
<description>{{ entry.excerpt | escape }}</description>
</item>
{%- endfor %}