-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xml
More file actions
25 lines (25 loc) · 1.25 KB
/
feed.xml
File metadata and controls
25 lines (25 loc) · 1.25 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
---
layout: null
---
<?xml version="1.0" encoding="UTF-8" ?>
<!-- modified from https://www.r-bloggers.com/2019/12/creating-an-rss-feed-to-add-your-jekyll-github-pages-blog-to-r-bloggers/ -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<entry>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<lastFeedUpdate>{{ site.time }}</lastFeedUpdate>
{% for post in site.posts %}
<item>
<title>{{ post.title | xml_escape }}</title>
<published>{{ post.date | date_to_xmlschema }}</published>
<updated>{% if post.lastmod != null %} {{ post.lastmod }} {% else %}{% endif %}</updated>
<id>{{ post.url | prepend: site.baseurl | prepend: site.url }}</id>
<description>{% if (post.content).size < 100 %} {{ post.content | xml_escape }} {% else %} {{ post.content | slice: 0, 100 | xml_escape }}... {% endif %} </description>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
</item>
{% endfor %}
</entry>
</rss>