From 23d62aaa39dae753d39dcd596b962ccc1c5cdb36 Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Wed, 2 Sep 2026 15:49:49 +0800 Subject: templates: migrate to zola 0.23 tera v1->v2 https://github.com/getzola/zola/issues/3235 https://github.com/Keats/tera/blob/master/MIGRATION.md --- templates/base.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 15f1dd7..c2fd24d 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,7 @@ {% block rss %} {% endblock %} - {% set sub_title = section.title | default(value=page.title | default(value='')) %} + {% set sub_title = section?.title | default(value=page?.title | default(value='')) %} {% if sub_title %} {% set title = sub_title ~ ' - ' ~ trans(key="title") %} {% else %} @@ -28,7 +28,7 @@