From 2dae670ed1d8e52b88063ebb448726b487d2a939 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 14 Aug 2022 22:40:45 +0100 Subject: [PATCH] feat: add archive RSS feed --- website/source/archive.xml.twig | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 website/source/archive.xml.twig diff --git a/website/source/archive.xml.twig b/website/source/archive.xml.twig new file mode 100644 index 00000000..2145f185 --- /dev/null +++ b/website/source/archive.xml.twig @@ -0,0 +1,35 @@ +--- +title: Feed +permalink: /archive.xml +use: + - daily_emails +--- + + + <![CDATA[{{ site.name }}]]> + + + {{ site.calculated_date|date('c') }} + {{ site.url }}/ + {% if site.author or site.email %} + + {% if site.author %}{% endif %} + + {% endif %} + Sculpin + {% for post in data.daily_emails|slice(0, 31) %} + + <![CDATA[{{ post.title }}]]> + + {{ post.date|date('c') }} + {{ site.url }}{{ post.url }} + {% if post.summary %} + + {% elseif post.blocks.excerpt %} + + {% else %} + + {% endif %} + + {% endfor %} +