-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathfeed.xml
More file actions
39 lines (39 loc) · 2.13 KB
/
feed.xml
File metadata and controls
39 lines (39 loc) · 2.13 KB
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
---
layout: null
---
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xml" href="{{ '/feed.xslt.xml' | relative_url }}"?>
{% assign all_posts = site.posts | concat: site.cardboctober | where_exp: "post", "post.archived != true" | sort:'date' | reverse %}
<feed xmlns="http://www.w3.org/2005/Atom">
<generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator>
<link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/atom+xml" />
<link href="{{ site.url }}{{ site.baseurl }}/" rel="alternate" type="text/html" />
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>{{ site.url }}{{ site.baseurl }}/feed.xml</id>
<title type="html">{{ site.title | xml_escape }}</title>
{% assign feed_subtitle = site.description | default: site.data.author.bio %}
{% if feed_subtitle %}<subtitle>{{ feed_subtitle | xml_escape }}</subtitle>{% endif %}
<author>
<name>{{ site.author.name | xml_escape }}</name>
</author>
{% assign feed_icon = site.icon | default: site.data.author.avatar %}
{% if feed_icon %}<icon>{{ feed_icon }}</icon>{% endif %}
{% for post in all_posts limit:25 %}
<entry>
<title type="html">{{ post.title | xml_escape }}</title>
<link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
<link href="{{ post.url | absolute_url }}.txt" rel="alternate" type="text/plain" title="{{ post.title | xml_escape }} (Plain Text)" />
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>{{ post.url | absolute_url }}</id>
<author>
<name>{{ site.author.name | xml_escape }}</name>
</author>
{% for tag in post.tags %}
<category term="{{ tag }}" />
{% endfor %}
<summary type="html"><![CDATA[{{ post.excerpt | strip_html | normalize_whitespace }}]]></summary>
<content type="html" xml:base="{{ post.url | absolute_url | xml_escape }}"><![CDATA[{{ post.content | strip }}]]></content>
</entry>
{% endfor %}
</feed>