mirror of
https://github.com/rottenwheel/revuo-weekly.git
synced 2024-12-22 07:40:24 +00:00
38 lines
1.2 KiB
XML
38 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.baseurl }}/atom.xml" rel="self"/>
|
|
<id>{{ site.baseurl }}</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.baseurl }}{{ post.url }}.html"/>
|
|
<id>{{ site.baseurl }}{{ 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 | prepend: site.baseurl %}
|
|
{% 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>
|