Browse Source

RSS Feed

master
Christian Aust 2 months ago
parent
commit
392ff16ca3
  1. 36
      rss.xml

36
rss.xml

@ -0,0 +1,36 @@
---
layout: compress
sitemap: false
---
<?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:sy="http://purl.org/rss/1.0/modules/syndication/"
>
<channel>
<title>{{ site.title }}</title>
<description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description>
<sy:updatePeriod>{{ site.feed_update_period | default: "daily" }}</sy:updatePeriod>
<sy:updateFrequency>{{ site.feed_update_frequency | default: 1 }}</sy:updateFrequency>
<link>{{ '/' | absolute_url }}</link>
<atom:link href="{{ site.url }}/{{ page.path }}" rel="self" type="application/rss+xml" />
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
{% for post in site.posts %}
{% unless post.published == false %}
<item>
<title>{{ post.title | xml_escape }}</title>
{% if post.author.name %}
<dc:creator>{{ post.author.name | xml_escape }}</dc:creator>
{% endif %}
<description>{{ post.content | xml_escape }}</description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | absolute_url }}</link>
<guid isPermaLink="true">{{ site.url }}{{ post.id }}</guid>
</item>
{% endunless %}
{% endfor %}
</channel>
</rss>
Loading…
Cancel
Save