mirror of
https://github.com/rottenwheel/revuo-weekly.git
synced 2024-11-26 04:53:30 +01:00
test
This commit is contained in:
parent
49d982b150
commit
9a82ddc01f
11
atom.xml
11
atom.xml
@ -18,13 +18,20 @@ 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>
|
||||||
</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 %}
|
{% endfor %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user