mirror of
https://github.com/rottenwheel/revuo-weekly.git
synced 2024-11-22 19:13:29 +01:00
39 lines
1.2 KiB
XML
39 lines
1.2 KiB
XML
---
|
|
layout: null
|
|
---
|
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
|
<title>{{ site.title }}</title>
|
|
<link href="{{ site.url }}/atom.xml" rel="self"/>
|
|
<id>{{ site.url }}</id>
|
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
|
<author>
|
|
<name>{{ site.author.name }}</name>
|
|
<uri>{{ site.author.url }}</uri>
|
|
<email>{{ site.author.email }}</email>
|
|
</author>
|
|
|
|
{% for post in site.posts limit: 10 %}
|
|
|
|
<entry>
|
|
<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>
|
|
{% 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 %}
|
|
|
|
</feed>
|