From a70742e1376ddaa3e9dcf1ae4d0b7516d4b70a0a Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 17 Jul 2018 12:07:33 +0200
Subject: Re-do the RSS 2.0 feed
---
_pages/index.md | 7 ++++---
atom.xml | 5 +++--
feed.xml | 28 ++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 5 deletions(-)
create mode 100644 feed.xml
diff --git a/_pages/index.md b/_pages/index.md
index bb130f5..d3181c4 100644
--- a/_pages/index.md
+++ b/_pages/index.md
@@ -73,12 +73,13 @@ via [`BitlBee`][bitlbee], the response time is about the same as via IRC.
## RSS
If you'd like to stay up-to-date with my posts, you can subscribe to the [RSS
-feed][rss].
+feed][rss] or the [Atom feed][atom].
+[atom]: {{ "/atom.xml" | prepend: site.baseurl | prepend: site.url }}
[bitlbee]: https://www.bitlbee.org/main.php/news.r.html
[c.darenet]: https://c.darenet.org/u/tyil
[darenet]: https://darenet.org
-[donate]: /support/
+[donate]: {{ "/support/" | prepend: site.baseurl | perpend: site.url }}
[freenode]: https://freenode.net
[github]: https://github.com/Tyil
[keybase]: https://keybase.io/tyil
@@ -87,4 +88,4 @@ feed][rss].
[mastodon]: https://mastodon.social/web/accounts/34234
[pubkey]: https://pgp.mit.edu/pks/lookup?op=vindex&search=0x9ACFE193FFBC1F50
[rizon]: https://rizon.net
-[rss]: https://www.tyil.nl/atom.xml
+[rss]: {{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}
diff --git a/atom.xml b/atom.xml
index e3395a1..c43d02c 100644
--- a/atom.xml
+++ b/atom.xml
@@ -7,8 +7,9 @@ layout: null
{{ site.title | xml_escape }}
{{ site.description | strip | xml_escape }}
{{ site.time | date_to_xmlschema }}
-
-
+
+
+
{{ site.author }}
{{ site.email }}
diff --git a/feed.xml b/feed.xml
new file mode 100644
index 0000000..51fcc9b
--- /dev/null
+++ b/feed.xml
@@ -0,0 +1,28 @@
+---
+layout: null
+---
+{% assign documents = site.documents | where: 'feed', true | sort: 'date' | reverse %}
+
+
+ {{ site.title }}
+ {{ site.description | strip | xml_escape }}
+
+
+
+ en
+ {{ site.email }} ({{ site.author }})
+ {{ site.email }} ({{ site.author }})
+ {{ site.time | date_to_rfc822 }}
+ http://www.feedvalidator.org/docs/rss2.html
+ 1440
+ Jekyll v{{ jekyll.version }}{% for post in documents limit:10 %}
+ -
+ {{ post.title }}
+ {% if post.description %}
+ {{ post.description | strip | xml_escape }}{% endif %}
+ {{ site.author }} ({{ site.email }}){% for tag in post.tags %}
+ {{ tag | xml_escape }}{% endfor %}{% for cat in post.categories %}
+ {{ cat | xml_escape }}{% endfor %}
+
{% endfor %}
+
+
--
cgit v1.1