From 15e21f35f0b0a74609bec9c694ad4e372e7c1eb4 Mon Sep 17 00:00:00 2001 From: mat ess Date: Sun, 4 Sep 2022 01:48:34 -0400 Subject: [PATCH] Exclude drafts from feed --- templates/atom.xml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 templates/atom.xml diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..5b6fb2b --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,35 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} + {{ config.description }} + {%- endif %} + + + Zola + {{ last_updated | date(format="%+") }} + {{ feed_url | safe }} + {%- for page in pages %} + {%- if page.draft %} + {% continue %} + {% endif -%} + + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + + {{ page.permalink | safe }} + {{ page.content }} + + {%- endfor %} + \ No newline at end of file