This repository has been archived by the owner on Jan 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathatom.xml
45 lines (43 loc) · 1.82 KB
/
atom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
---
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.brand }}</title>
<link href="http://{{ site.url }}/"/>
<link type="application/atom+xml" rel="self" href="http://{{ site.url }}/atom.xml"/>
<link href="https://pubsubhubbub.superfeedr.com" rel="hub"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://{{ site.url }}/</id>
<author>
<name>{{ site.author }}</name>
<email>[email protected]</email>
</author>
{% for page in site.posts limit:5 %}
{% if page.layout == 'deleted' %}{% else %}
<entry>
<id>http://{{ site.url }}{{ page.id }}</id>
{% case page.layout %}
{% when 'post' %}
<link type="text/html" rel="alternate" href="http://{{ site.url }}{{ page.url | xml_escape }}"/>
<title>{{ page.title | xml_escape }}</title>
{% when 'linklog' %}
<link type="text/html" rel="alternate" href="{{ page.external_url | xml_escape }}"/>
<title>{{ page.title | xml_escape }} {{ site.linklog }}</title>
{% else %}
<link type="text/html" rel="alternate" href="http://{{ site.url }}{{ page.url | xml_escape }}"/>
<title>{{ page.title | xml_escape }}</title>
{% endcase %}
<published>{{ page.date | date_to_xmlschema }}</published>
<updated>{{ page.date | date_to_xmlschema }}</updated>
<author>
<name>{{ site.url }}</name>
<uri>http://{{ site.url }}/</uri>
</author>
<content type="html">
{{ page.content | xml_escape }}
{% if page.layout == 'linklog' %}{% capture bookmark %}<a rel="bookmark" href="{{ page.url }}">{% if site.permalink_marker %}{{ site.permalink_marker }}{% else %}∞{% endif %}</a>{% endcapture %}{{ bookmark | xml_escape }}{% endif %}
</content>
</entry>
{% endif %}
{% endfor %}
</feed>