From c1856d1f3edbc4b32be5860233dede88db16a7bb Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Thu, 1 Jan 2026 17:36:39 +0200 Subject: Start migrating content --- templates/atom.xml | 68 +++++++++++++++++++++++++++++++++++++++++++ templates/base.html | 2 +- templates/feed.xml | 1 + templates/index.html | 2 +- templates/macros.html | 16 ++++++++++ templates/page.html | 38 ++++++------------------ templates/section.html | 20 +++++++++---- templates/shortcodes/fig.html | 4 +++ templates/shortcodes/toc.html | 1 + 9 files changed, 116 insertions(+), 36 deletions(-) create mode 100644 templates/atom.xml create mode 100644 templates/feed.xml create mode 100644 templates/macros.html create mode 100644 templates/shortcodes/fig.html create mode 100644 templates/shortcodes/toc.html (limited to 'templates') diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..b1721ce --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,68 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} + {{ config.description }} + {%- endif %} + + + Zola + {% if last_updated is defined %}{{ last_updated | date(format="%+") }}{% endif %} + {{ feed_url | safe }} + {%- for page in pages %} + + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + {% for author in page.authors %} + + + {{ author }} + + + {% else %} + + + {%- if config.author -%} + {{ config.author }} + {%- else -%} + Unknown + {%- endif -%} + + + {% endfor %} + + {{ page.permalink | safe }} + {% if page.summary %} + {{ page.summary }} + {% else %} + + {{ page.content }} + + {% endif %} + + {%- endfor %} + diff --git a/templates/base.html b/templates/base.html index c000c1b..de01e9c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -61,8 +61,8 @@ font-style: italic; } - +

Latest posts