This commit is contained in:
rottenwheel 2023-07-15 04:58:57 +00:00 committed by GitHub
parent 49d982b150
commit 9a82ddc01f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,12 +18,19 @@ layout: null
{% for post in site.posts limit: 10 %} {% for post in site.posts limit: 10 %}
<entry> <entry>
<enclosure href="https://revuo-xmr.com{{ page.image }}" />
<title>{{ post.title }}</title> <title>{{ post.title }}</title>
<link href="{{ site.url }}{{ post.url }}.html"/> <link href="{{ site.url }}{{ post.url }}.html"/>
<id>{{ site.url }}{{ post.id }}</id> <id>{{ site.url }}{{ post.id }}</id>
<updated>{{ post.date | date_to_xmlschema }}</updated> <updated>{{ post.date | date_to_xmlschema }}</updated>
<content type="html">{{ post.content | xml_escape | truncatewords:50 }}</content> <content type="html">{{ post.content | xml_escape | truncatewords:50 }}</content>
{% 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> </entry>
{% endfor %} {% endfor %}