forked from peridaf/pibookgr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
atom.xml
74 lines (66 loc) · 2.49 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
layout: null
title: "Atom Feed"
permalink: /atom.xml
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="{{ site.baseurl }}/assets/xslt/atom.xslt" ?>
<?xml-stylesheet type="text/css" href="{{ site.baseurl }}/assets/css/atom.css" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
<id>{{ site.url }}{{ site.baseurl }}/</id>
<title>{{ site.title | xml_escape }}</title>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<subtitle>{{ site.description | xml_escape }}</subtitle>
{% if site.author %}
{% assign author = site.data.authors[site.author] %}
<author>
{% if author.name %}
<name>{{ author.name | xml_escape }}</name>
{% else %}
<name>{{ site.author | xml_escape }}</name>
{% endif %}
{% if author.email %}
<email>{{ author.email | xml_escape }}</email>
{% endif %}
{% if author.uri %}
<uri>{{ author.uri | xml_escape }}</uri>
{% endif %}
</author>
{% endif %}
<link href="{{ site.url }}{{ site.baseurl }}{{page.url }}" rel="self" type="application/rss+xml" />
<link href="{{ site.url }}{{ site.baseurl }}/" rel="alternate" type="text/html" />
<generator uri="http://jekyllrb.com" version="{{ jekyll.version }}">Jekyll</generator>
{% for post in site.posts limit: 10 %}
<entry>
<id>{{ site.url }}{{ site.baseurl }}{{ post.url }}</id>
<title>{{ post.title | strip_html | strip_newlines | xml_escape }}</title>
<link href="{{ site.url }}{{ site.baseurl }}{{ post.url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
<updated>{{ post.date | date_to_xmlschema }}</updated>
{% if post.author %}
{% assign author = site.data.authors[post.author] %}
<author>
{% if author.name %}
<name>{{ author.name | xml_escape }}</name>
{% else %}
<name>{{ post.author | xml_escape }}</name>
{% endif %}
{% if author.email %}
<email>{{ author.email | xml_escape }}</email>
{% endif %}
{% if author.uri %}
<uri>{{ author.uri | xml_escape }}</uri>
{% endif %}
</author>
{% endif %}
<summary>{{ post.teaser | xml_escape }}</summary>
<content type="html" xml:base="{{ site.url }}{{ site.baseurl }}{{ post.url }}">{{ post.content | xml_escape }}</content>
{% for category in post.categories %}
<category term="{{ category | xml_escape }}" />
{% endfor %}
{% for tag in post.tags %}
<category term="{{ tag | xml_escape }}" />
{% endfor %}
<published>{{ post.date | date_to_xmlschema }}</published>
</entry>
{% endfor %}
</feed>