-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathatom.xml
39 lines (32 loc) · 1.27 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
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="ja-JP" xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.data.summary.title }}</title>
<link href="{{ site.github.url }}/atom.xml" rel="self" type="application/atom+xml" />
<link href="{{ site.github.url }}/" rel="alternate" type="text/html" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.github.url }}</id>
<author>
<name>{{ site.data.summary.author.name }}</name>
</author>
{% assign docs = "" | split: "" %}
{% for collection in site.collections %}
{% for doc in collection.docs %}
{% if doc.slug == 'index' %} {% continue %} {% endif %}
{% assign docs = docs | push: doc %}
{% endfor %}
{% endfor %}
{% assign docs = docs | sort: 'lastchange' | reverse %}
{% for doc in docs %}
<entry>
<title>{{ doc.title | xml_escape }}</title>
<link href="{{ site.github.url }}{{ doc.url }}" rel="alternate" type="text/html"/>
<published>{{ doc.date | date_to_xmlschema }}</published>
<updated>{{ doc.lastchange | date_to_xmlschema }}</updated>
<id>{{ site.github.url }}{{ doc.id }}</id>
<summary>{{ doc.content | strip_html | newline_to_br | split:'<br />' | first }}</summary>
</entry>
{% endfor %}
</feed>