forked from drachenwald/autobaelfyr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.xml
45 lines (41 loc) · 1.34 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
---
layout: none
---
<feed xmlns="http://www.w3.org/2005/Atom">
<generator uri="{{ site.url }}" version="0.0.1">Automatic Baelfyr</generator>
<link href="{{ site.url }}/atom.xml" rel="self" type="application/atom+xml"/>
<link href="{{ site.url }}" rel="alternate" type="text/html"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}</id>
<title type="html">The Baelfyr</title>
<subtitle>The Newsletter of the Principality of Insualae Draconis</subtitle>
{%- assign chapters = site.issues | sort: 'feed', 'first' -%}
{%- assign buildtime = site.time | date: "%s" | plus: 0 -%}
{%- for chapter in chapters reversed -%}
{%- if forloop.index < 100 -%}
{%- if chapter.feed -%}
{%- assign chapterfeedtime = chapter.feed | date:"%s" | plus: 0 -%}
{% if chapterfeedtime < buildtime %}
<entry>
<title type="html">{{ chapter.title }}</title>
<link href="{{ site.url }}{{ chapter.url }}" rel="alternate" type="text/html" title="{{ chapter.title }}"/>
<published>{{ chapter.feed }}T00:00:00+00:00</published>
<updated>{{ chapter.feed }}T00:00:00+00:00</updated>
<id>
{{ site.url }}{{ chapter.url }}
</id>
<content type="html" xml:base="{{ site.url }}{{ chapter.url }}">
{{ chapter.content }}
</content>
<author>
<name/>
</author>
<summary type="html">
{{ chapter.excerpt }}
</summary>
</entry>
{% endif %}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
</feed>