mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-30 16:08:10 +01:00
103 lines
3.9 KiB
XML
103 lines
3.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">
|
|
<generator uri="http://jekyllrb.com" version="{{ jekyll.version }}">Jekyll</generator>
|
|
|
|
<link href="{{ site.url }}/feed/" type="application/atom+xml" rel="self" />
|
|
<link href="{{ site.url }}/" rel="alternate" type="text/html" />
|
|
<updated>{{ site.time | date_to_xmlschema }}</updated>
|
|
<id>{{ site.url }}</id>
|
|
|
|
{% if site.name %}
|
|
<title>{{ site.name | xml_escape }}</title>
|
|
{% endif %}
|
|
|
|
{% if site.description %}
|
|
<subtitle>{{ site.description | xml_escape }}</subtitle>
|
|
{% endif %}
|
|
|
|
{% if site.author %}
|
|
<author>
|
|
{% if site.author.name %}
|
|
<name>{{ site.author.name | xml_escape }}</name>
|
|
{% else %}
|
|
<name>{{ site.author | xml_escape }}</name>
|
|
{% endif %}
|
|
{% if site.author.email %}
|
|
<email>{{ site.author.email | xml_escape }}</email>
|
|
{% endif %}
|
|
{% if site.author.uri %}
|
|
<uri>{{ site.author.uri | xml_escape }}</uri>
|
|
{% endif %}
|
|
</author>
|
|
{% endif %}
|
|
|
|
{% for post in site.posts limit:100 %}
|
|
<entry>
|
|
{% if post.layout == "link" %}
|
|
<title>{{ post.title | markdownify | strip_html | strip_newlines | xml_escape | titlecase }} →</title>
|
|
<link href="{{ post.linkurl | escape }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
|
|
{% else %}
|
|
<title>{{ post.title | markdownify | strip_html | strip_newlines | xml_escape | titlecase }}</title>
|
|
<link href="{{ site.url }}{{ post.url | escape }}" rel="alternate" type="text/html" title="{{ post.title | xml_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>{{ post.id | prepend: site.url | xml_escape }}</id>
|
|
<content type="html" xml:base="{{ post.url | xml_escape }}">
|
|
{% if post.image %}
|
|
<img src="{{ site.url }}/media/{{ post.image }}" />
|
|
{% endif %}
|
|
|
|
{{ post.content | markdownify | xml_escape }}
|
|
|
|
{% if post.layout == "link" %}
|
|
<a href="{{ post.linkurl }}">Go to source &#187;</a> <br />
|
|
<a href="{{ site.url }}{{ post.url }}" title="Permalink for this post">&#8734;</a>
|
|
{% endif %}
|
|
</content>
|
|
|
|
{% if post.author %}
|
|
<author>
|
|
{% if post.author.name %}
|
|
<name>{{ post.author.name | xml_escape }}</name>
|
|
{% else %}
|
|
<name>{{ post.author | xml_escape }}</name>
|
|
{% endif %}
|
|
{% if post.author.email %}
|
|
<email>{{ post.author.email | xml_escape }}</email>
|
|
{% endif %}
|
|
{% if post.author.url %}
|
|
<uri>{{ post.author.url | xml_escape }}</uri>
|
|
{% endif %}
|
|
</author>
|
|
{% endif %}
|
|
|
|
{% if post.category %}
|
|
<category term="{{ post.category | xml_escape }}" />
|
|
{% endif %}
|
|
|
|
{% for tag in post.tags %}
|
|
<category term="{{ tag | xml_escape }}" />
|
|
{% endfor %}
|
|
|
|
{% if post.excerpt %}
|
|
<summary>{{ post.excerpt | markdownify | strip_html | strip_newlines | xml_escape }}</summary>
|
|
{% endif %}
|
|
|
|
</entry>
|
|
{% endfor %}
|
|
</feed>
|