From 8b2f08271272843778571e967461d00b027d1d99 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 15 Jun 2020 12:07:00 +0200 Subject: Use `feed.xml` as location for atom feed. --- config.toml | 1 + templates/feed.xml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 templates/feed.xml diff --git a/config.toml b/config.toml index 3f847c3..d7e9001 100644 --- a/config.toml +++ b/config.toml @@ -16,6 +16,7 @@ highlight_code = true generate_feed = true feed_limit = 20 +feed_filename = "feed.xml" taxonomies = [ { name = "tags", feed = true }, diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..d3d384a --- /dev/null +++ b/templates/feed.xml @@ -0,0 +1,23 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- endif -%} + + {{ trans(key="description", lang=lang) }} + + + Zola + {{ last_updated | date(format="%+") }} + {{ feed_url | safe }} + {%- for page in pages %} + + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + + {{ page.permalink | safe }} + {{ page.content }} + + {%- endfor %} + -- cgit v1.2.3