mirror of
https://github.com/rottenwheel/revuo-weekly.git
synced 2024-12-22 15:47:46 +00:00
test
This commit is contained in:
parent
49d982b150
commit
9a82ddc01f
1 changed files with 9 additions and 2 deletions
9
atom.xml
9
atom.xml
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue