-
Notifications
You must be signed in to change notification settings - Fork 1
/
feed.xml
37 lines (36 loc) · 1.31 KB
/
feed.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
---
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="/feed.xsl" type="text/xsl"?>
<!--
Based on
https://gist.github.com/andrewstiefel/57a0a400aa2deb6c9fe18c6da4e16e0f
-->
<feed xmlns="http://www.w3.org/2005/Atom">
<title>{{ site.title }}</title>
<link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" />
<link href="{{ site.url }}{{ site.baseurl }}/" rel="alternate" />
<subtitle>{{ site.description }}</subtitle>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}/</id>
<author>
<name>{{ site.author.name }}</name>
<email>{{ site.author.email }}</email>
</author>
<rights type="text">Creative Commons CC BY-SA 4.0 license</rights>
{% for post in site.posts %}
{%- if post.unlisted -%}
{% continue %}
{%- endif -%}
<entry>
<title>{{ post.title }}</title>
<link rel="alternate" href="{{ site.url }}{{ post.url }}" />
<updated>{{ post.date | date_to_xmlschema }}</updated>
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
<updated-readable>{{ post.date | date: date_format }}</updated-readable>
<id>{{ site.url }}{{ site.baseurl }}{{ post.id }}</id>
<summary>{{ post.excerpt }}</summary>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>