summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorMole Shang <135e2@135e2.dev>2026-09-02 15:49:49 +0800
committerMole Shang <135e2@135e2.dev>2026-09-02 15:49:49 +0800
commit23d62aaa39dae753d39dcd596b962ccc1c5cdb36 (patch)
tree269670883636ee9adb47a123acd69abd2d6522a0 /templates/base.html
parenta582b6ef76bfb79744716f5cdfafff8c41861ec9 (diff)
downloadSeje2-23d62aaa39dae753d39dcd596b962ccc1c5cdb36.tar.gz
Seje2-23d62aaa39dae753d39dcd596b962ccc1c5cdb36.tar.bz2
Seje2-23d62aaa39dae753d39dcd596b962ccc1c5cdb36.zip
templates: migrate to zola 0.23main
tera v1->v2 https://github.com/getzola/zola/issues/3235 https://github.com/Keats/tera/blob/master/MIGRATION.md
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html4
1 files changed, 2 insertions, 2 deletions
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 %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
{% 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 @@
<title>{{ title }}</title>
<meta charset="utf-8">
<meta name="title" content="{{ title }}">
- <meta name="description" content="{{ section.description | default(value=page.description | default(value=config.description)) }}">
+ <meta name="description" content="{{ section?.description | default(value=page?.description | default(value=config.description)) }}">
<meta property="og:image:width" content="200" />
<meta property="og:image:height" content="200" />
<link rel="stylesheet" href="{{ config.base_url }}/style.css">