1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-13 16:45:14 +01:00
blog/_src/feed.xml

47 lines
1.6 KiB
XML

---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="text" xml:lang="en">{{ site.name }}</title>
<link type="application/atom+xml" href="{{ site.url }}/feed/" rel="self"/>
<link type="text" href="{{ site.url }}" rel="alternate"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<author>
<name>{{ site.author }}</name>
</author>
{% for post in site.posts limit:100 %}
<entry>
<title>{{ post.title }}</title>
{% if post.layout == "link" %}
<link>{{ post.linkurl }}</link>
{% else %}
<link>{{ site.url }}/{{ post.url }}</link>
{% endif %}
<published>{{ post.date | date_to_xmlschema }}</published>
{% if post.moddate %}
<updated>{{ post.moddate | date_to_xmlschema }}</updated>
{% endif %}
<id>{{ site.url }}/{{ post.url }}</id>
<content type="html">
{% if post.image %}
&lt;img src=&quot;{{ site.url }}/media/640/{{ post.image }}&quot; /&gt;
{% endif %}
{{ post.content | xml_escape }}
{% if post.layout == "link" %}
&lt;a class=&quot;more-link&quot; 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>