forked from crystal-lang/crystal-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
feed.xml
36 lines (36 loc) · 1.73 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
---
layout: none
---
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title>{{ site.name | xml_escape }}</title>
{%- if site.description %}
<subtitle>{{ site.description | 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.blog_authors[author].name }}</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>