-
-
Notifications
You must be signed in to change notification settings - Fork 77
/
feed.xml
37 lines (37 loc) · 1.75 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
---
layout: none
section: blog
---
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title>{{ site.title | xml_escape }}</title>
{%- if site.tagline %}
<subtitle>{{ site.tagline | xml_escape }}</subtitle>
{%- endif %}
<link href="{{ '/' | absolute_url }}" rel="alternate" type="text/html" />
<link href="{{ page.url | absolute_url }}" rel="self" type="application/atom+xml" />
<link href="{{ '/releases/feed.xml' | absolute_url }}" rel="related" type="application/atom+xml" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ page.url | absolute_url | xml_escape }}</id>
{%- assign documents = site.releases | concat: site.posts | sort: 'date' | reverse %}
{%- for post in documents limit:10 %}
<entry>
<title>{{ post.title | xml_escape }}</title>
{%- assign authors = post.author | split: ',' %}
{%- for author in authors %}
<author>
<name>{{ site.data.authors[author].name | default: author }}</name>
<uri>https://github.com/{{ author }}/</uri>
</author>
{%- endfor %}
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
<id>{{ post.id | absolute_url | xml_escape }}</id>
{%- if post.excerpt and post.excerpt != empty %}
<summary type="html">{{ post.excerpt | strip_html | normalize_whitespace | xml_escape }}</summary>
{%- endif %}
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}">{{ post.content | strip | xml_escape }}</content>
</entry>
{%- endfor %}
</feed>