From e3bd75e9e384d03b070bb8bdab3c42aef645ad23 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 24 Jun 2023 00:30:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20refactor:=20restructure=20templa?= =?UTF-8?q?te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/atom.xml | 61 ++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 32 deletions(-) diff --git a/templates/atom.xml b/templates/atom.xml index c45dafd..6402128 100644 --- a/templates/atom.xml +++ b/templates/atom.xml @@ -1,50 +1,47 @@ {{ config.title }} - {%- if term %} - {{ term.name }} - {%- elif section.title %} - {{ section.title }} - {%- endif -%} + {%- 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 %} + "/> + 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.updated | default(value=page.date) | date(format="%+") }} - {%- if page.authors -%} - {{ page.authors[0] }} - {%- elif config.author -%} - {{ config.author }} - {%- else -%} - Unknown - {%- endif -%} + {%- if page.authors -%} + {{ page.authors[0] }} + {%- elif config.author -%} + {{ config.author }} + {%- else -%} + Unknown + {%- endif -%} - - {{ - page.permalink | safe }} - {% if page.summary %} - {{ page.summary }} - {% elif page.description %} - {{ page.description }} - {% endif %} + + {{ page.permalink | safe }} + {% if page.summary %} + {{ page.summary }} + {% elif page.description %} + {{ page.description }} + {% endif %} {%- endfor %}