-
Notifications
You must be signed in to change notification settings - Fork 15
/
blog.xml
41 lines (41 loc) · 1.98 KB
/
blog.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
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.base_url }}</link>
<atom:link href="{{ site.url }}{{ site.blog_feed_url }}" rel="self" type="application/rss+xml"/>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<generator>Jekyll v{{ jekyll.version }}</generator>
{% assign sorted_blogs = site.publications | reverse | where:"category","blog" %}
{% for post in sorted_blogs %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% if post.progress_update %}
<description>Progress Updates Are Only Compatible in Webview (due to CSS tricks for NoJS support). View in your Readers Webview or visit {{ site.url }}{{ post.url }}</description>
<content:encoded>
{{ post.content | markdownify | xml_escape }}
</content:encoded>
{% elsif post.summary %}
<description>{{ post.summary | xml_escape }}</description>
<content:encoded>
{{ post.content | markdownify | xml_escape }}
</content:encoded>
{% else %}
<description>{{ post.content | xml_escape }}</description>
{% endif %}
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ site.url }}{{ site.base_url }}{{ post.url | replace_first: '/', '' }}</link>
<guid isPermaLink="true">{{ site.url }}{{ site.base_url }}{{ post.url | replace_first: '/', '' }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
<dc:creator>{{ post.author | xml_escape }}</dc:creator>
</item>
{% endfor %}
</channel>
</rss>