1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-09-24 10:08:50 +02:00
blog/_src/feed/index.xml

54 lines
1.9 KiB
XML

---
redirect_from:
- /home/feed/
- /feed/atom/
- /comments/feed/
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text" xml:lang="en">{{ site.name | xml_escape }}</title>
<link type="application/atom+xml" href="{{ site.url }}/feed/" rel="self"/>
<link href="{{ site.url }}/"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.author | xml_escape}}</name>
<email>{{ site.email }}</email>
</author>
{% for post in site.posts limit:100 %}
<entry>
{% if post.layout == "link" %}
<title>{{ post.title | xml_escape | titlecase }} &#8594;</title>
<link rel="alternate" type="text/html" href="{{ post.linkurl | escape }}" />
{% else %}
<title>{{ post.title | xml_escape | titlecase }}</title>
<link rel="alternate" type="text/html" href="{{ site.url }}{{ post.url | escape }}" />
{% endif %}
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.updated %}
<updated>{{ post.updated | date_to_xmlschema }}</updated>
{% else %}
<updated>{{ post.date | date_to_xmlschema }}</updated>
{% endif %}
<id>{{ site.url }}{{ post.url }}</id>
<content type="html">
{% if post.image %}
&lt;img src=&quot;{{ site.url }}/media/{{ post.image }}&quot; /&gt;
{% endif %}
{{ post.content | xml_escape }}
{% if post.layout == "link" %}
&lt;a href=&quot;{{ post.linkurl }}&quot;&gt;Go to source &amp;#187;&lt;/a&gt; &lt;br /&gt;
&lt;a href=&quot;{{ site.url }}{{ post.url }}&quot; title=&quot;Permalink for this post&quot;&gt;&amp;#8734;&lt;/a&gt;
{% endif %}
</content>
</entry>
{% endfor %}
</feed>