-
Notifications
You must be signed in to change notification settings - Fork 8
/
atom.xml
55 lines (49 loc) · 2.24 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
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" {% if site.lang %}xml:lang="{{ site.lang }}"{% endif %}>
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" {% if site.lang %}hreflang="{{ site.lang }}" {% endif %}/>
<updated>{{ page.last_modified_at | date_to_xmlschema }}</updated>
<id>{{ site.url | absolute_url | xml_escape }}/</id>
{% if site.title %}
<title type="html">{{ site.title | smartify | xml_escape }}</title>
{% elsif site.name %}
<title type="html">{{ site.name | smartify | xml_escape }}</title>
{% endif %}
{% if site.description %}
<subtitle>{{ site.description | xml_escape }}</subtitle>
{% endif %}
{% if site.author %}
<author>
<name>{{ site.author.name | default: site.author | xml_escape }}</name>
{% if site.author.email %}
<email>{{ site.author.email | xml_escape }}</email>
{% endif %}
{% if site.author.uri %}
<uri>{{ site.author.uri | xml_escape }}</uri>
{% endif %}
</author>
{% endif %}
{% assign sorted_pages = site.html_pages | sort:"title" %}
{% for page in sorted_pages %}
{% if page.layout == 'article' %}
<entry{% if page.lang %}{{" "}}xml:lang="{{ page.lang }}"{% endif %}>
<title type="html">{{ page.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
<link href="{{ page.url | absolute_url }}" rel="alternate" type="text/html" title="{{ page.title | xml_escape }}" />
<published>{{ page.last_modified_at | date_to_xmlschema }}</published>
<updated>{{ page.last_modified_at | date_to_xmlschema }}</updated>
<id>{{ site.url | xml_escape }}{{ page.url | xml_escape }}</id>
<content type="html" xml:base="{{ page.url | absolute_url | xml_escape }}">{{ page.content | strip | xml_escape }}</content>
{% if page.category %}
<category term="{{ page.category | xml_escape }}" />
{% endif %}
{% for tag in page.tags %}
<category term="{{ tag | xml_escape }}" />
{% endfor %}
</entry>
{% endif %}
{% endfor %}
</feed>