From 96d437baab4a622eb540719feb90ea810fb01756 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 19 Apr 2025 21:43:53 +0100 Subject: Add support for atom / rss feed Date format was changed to support `updated` in ISO format. Now every post will require date and time, which might be a usability regression, but we'll see. Also, `updated` field was introduced in metadata. If there is no such field, them date field will be used instead. --- templates/atom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 templates/atom.xml (limited to 'templates/atom.xml') diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..ba7fbda --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,24 @@ + + blog.ilvokhin.com + tag:blog.ilvokhin.com,2022:blog.ilvokhin.com + + + {{ updated.isoformat() }} + + Dmitry Ilvokhin + https://ilvokhin.com/ + d@ilvokhin.com + +{% if posts %} + {% for post in posts %} + + {{ post.metadata.title }} + tag:blog.ilvokhin.com,2022:blog.ilvokhin.com/{{ post.name }} + + {{ post.metadata.date.isoformat() }} + {{ post.metadata.updated.isoformat() }} + {{ post.content }} + + {% endfor %} +{% endif %} + -- cgit v1.2.3-70-g09d2