forked from mmistakes/jekyll-theme-skinny-bones
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
43 lines (41 loc) · 1.5 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
---
limit: 25
---
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
{% if site.url %}
{% assign base = site.url %}
{% elsif site.github.url %}
{% assign base = site.github.url %}
{% endif %}
<title>{{ site.title }}</title>
<generator uri="https://github.com/jekyll/jekyll">Jekyll v{{ jekyll.version }}</generator>
<icon>{{ site.url }}/apple-touch-icon-precomposed.png</icon>
<subtitle>{{ site.description }}</subtitle>
<link href="{{ base }}{{ page.url }}" rel="self"/>
<link href="{{ base }}/" rel="alternate" type="text/html"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ base }}/</id>
<author>
<name>{{ site.owner.name | xml_escape }}</name>
<uri>{{ site.url }}/</uri>
{% if site.owner.email %}<email>{{ site.owner.email }}</email>{% endif %}
</author>
{% for post in site.posts limit: page.limit %}
<entry>
<title>{{ post.title | xml_escape }}</title>
<link href="{{ base }}{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ base }}{{ post.id }}</id>
<author>
<name>{{ site.owner.name | xml_escape }}</name>
<uri>{{ site.url }}/</uri>
{% if site.owner.email %}<email>{{ site.owner.email }}</email>{% endif %}
</author>
<content type="html">
{% if post.image.feature %}<img src="{{ site.url }}/images/{{ post.image.feature }}"><br/>{% endif %}
{{ post.content | xml_escape }}
</content>
</entry>
{% endfor %}
</feed>