pull/29/head
rottenwheel 10 months ago committed by GitHub
parent 49d982b150
commit 9a82ddc01f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -18,13 +18,20 @@ layout: null
{% for post in site.posts limit: 10 %}
<entry>
<enclosure href="https://revuo-xmr.com{{ page.image }}" />
<title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}.html"/>
<id>{{ site.url }}{{ post.id }}</id>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<content type="html">{{ post.content | xml_escape | truncatewords:50 }}</content>
</entry>
{% assign post_image = post.image.path | default: post.image %}
{% if post_image %}
{% unless post_image contains "://" %}
{% assign post_image = post_image | absolute_url %}
{% endunless %}
<media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="{{ post_image | xml_escape }}" />
<media:content medium="image" url="{{ post_image | xml_escape }}" xmlns:media="http://search.yahoo.com/mrss/" />
{% endif %}
</entry>
{% endfor %}

Loading…
Cancel
Save