summaryrefslogtreecommitdiff
path: root/templates/navbar.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/navbar.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/navbar.html')
-rw-r--r--templates/navbar.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/navbar.html b/templates/navbar.html
index 07abdb9..f92dbdc 100644
--- a/templates/navbar.html
+++ b/templates/navbar.html
@@ -5,8 +5,8 @@
<li class="menu-item">
{% set url_inner = item['url'] | replace(from="$BASE_URL", to="") %}
{% set url = url_inner ~ '/'%}
- {% if page.path or section.path %}
- {% set path = page.path|default(value = section.path) %}
+ {% if page?.path or section?.path %}
+ {% set path = page?.path | default(value=section?.path) %}
{% if url == path or url_inner == path %}
<a href="{{ item['url'] | replace(from="$BASE_URL", to=config.base_url) }}" class="current-menu-item-link">{{ trans(key=item['name']) }}</a>
{% else %}