chore: add images to feed entries if available
This commit is contained in:
parent
e33a961ba3
commit
e8a03dbc7c
5 changed files with 59 additions and 30 deletions
|
@ -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 %}
|
||||
|
|
Reference in a new issue