From 58ca81524000b6e9ccd7e1de8bcba477dc6b9bc4 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Mon, 16 Jul 2018 16:23:51 +0200 Subject: Update feed.xml to atom.xml --- _includes/head.html | 2 +- _pages/index.md | 2 +- atom.xml | 31 +++++++++++++++++++++++++++++++ feed.xml | 26 -------------------------- 4 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 atom.xml delete mode 100644 feed.xml diff --git a/_includes/head.html b/_includes/head.html index 61c8c2d..4301775 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -15,7 +15,7 @@ {% endif %} - + diff --git a/_pages/index.md b/_pages/index.md index e525dc1..bb130f5 100644 --- a/_pages/index.md +++ b/_pages/index.md @@ -87,4 +87,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/feed.xml +[rss]: https://www.tyil.nl/atom.xml diff --git a/atom.xml b/atom.xml new file mode 100644 index 0000000..e3395a1 --- /dev/null +++ b/atom.xml @@ -0,0 +1,31 @@ +--- +layout: null +--- +{% assign documents = site.documents | where: 'feed', true | sort: 'date' | reverse %} + + {{ site.url }}{{ site.baseurl }}/ + {{ site.title | xml_escape }} + {{ site.description | strip | xml_escape }} + {{ site.time | date_to_xmlschema }} + + + + {{ site.author }} + {{ site.email }} + + Jekyll{% for post in documents limit:10 %} + + {{ site.url }}{{ site.baseurl }}{{ post.url }} + {{ post.title | xml_escape }} + + {{ site.author }} + {{ site.email }} + + {{ post.date | date_to_xmlschema }} + {% if post.description %} + {{ post.description | strip | xml_escape }}{% endif %} + {{ post.content | strip_html }}{% for tag in post.tags %} + {% endfor %}{% for cat in post.categories %} + {% endfor %} + {% endfor %} + diff --git a/feed.xml b/feed.xml deleted file mode 100644 index d7f77cc..0000000 --- a/feed.xml +++ /dev/null @@ -1,26 +0,0 @@ ---- -layout: null ---- -{% assign documents = site.documents | where: 'feed', true | sort: 'date' | reverse %} - - {{ site.url }}{{ site.baseurl }} - {{ site.title | xml_escape }} - {{ site.description | strip | xml_escape }} - {{ site.time | date_to_xmlschema }} - - - {{ site.author }} - {{ site.email }} - - Jekyll{% for post in documents limit:25 %} - - {{ post.id }} - {{ post.title | xml_escape }} - {{ post.date | date_to_xmlschema }} - {% if post.description %} - {{ post.description | strip | xml_escape }}{% endif %} - {{ post.url | prepend: site.baseurl | prepend: site.url }}{% for tag in post.tags %} - {% endfor %}{% for cat in post.categories %} - {% endfor %} - {% endfor %} - -- cgit v1.1