From 1a3401dbf731b7d29daa42f3b7d6cd32503dd55e Mon Sep 17 00:00:00 2001
From: Jieiku
Date: Thu, 20 Aug 2026 17:25:24 -0700
Subject: Update for Zola 0.23.4
---
templates/404.html | 4 ++--
templates/archive.html | 4 ++--
templates/categories/list.html | 4 ++--
templates/categories/single.html | 5 +++--
templates/index.html | 5 ++---
templates/tags/list.html | 4 ++--
templates/tags/single.html | 4 ++--
7 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/templates/404.html b/templates/404.html
index 02a4f54..c499874 100644
--- a/templates/404.html
+++ b/templates/404.html
@@ -1,6 +1,4 @@
{% extends "base.html" %}
-{%- set uglyurls = (config.extra.uglyurls or false) -%}
-{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
{%- block seo -%}
{{ super() }}
@@ -15,6 +13,8 @@
{%- endblock seo -%}
{%- block content %}
+{%- set uglyurls = (config.extra.uglyurls or false) -%}
+{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
404 :(
{#- Default English message #}
diff --git a/templates/archive.html b/templates/archive.html
index 3ec7d67..2dcf48d 100644
--- a/templates/archive.html
+++ b/templates/archive.html
@@ -4,8 +4,6 @@ This Template can also be used as the rendering template for Sections, eg: examp
#}
{% extends "base.html" %}
-{%- set uglyurls = (config.extra.uglyurls or false) -%}
-{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
{%- block seo -%}
{{- super() -}}
@@ -20,6 +18,8 @@ This Template can also be used as the rendering template for Sections, eg: examp
{%- endblock seo -%}
{%- block content %}
+ {%- set uglyurls = (config.extra.uglyurls or false) -%}
+ {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
{#- The following line is checking if the template is being used for the archive page or a section #}
{%- if current_path is matching(pat="^(/[[:alpha:]][[:alpha:]])?/archive/$") %}
{%- if section.extra.sec %}
diff --git a/templates/categories/list.html b/templates/categories/list.html
index b9a3972..4f1d396 100644
--- a/templates/categories/list.html
+++ b/templates/categories/list.html
@@ -1,6 +1,4 @@
{%- extends "base.html" -%}
-{%- set uglyurls = (config.extra.uglyurls or false) -%}
-{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{%- block seo -%}
{{- super() -}}
{%- set title = "Categories" -%}
@@ -13,6 +11,8 @@
{{
}}
{%- endblock seo -%}
{%- block content %}
+{%- set uglyurls = (config.extra.uglyurls or false) -%}
+{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{{ terms | length }} {{}}
diff --git a/templates/categories/single.html b/templates/categories/single.html
index 47bb6cb..6997db1 100644
--- a/templates/categories/single.html
+++ b/templates/categories/single.html
@@ -1,6 +1,5 @@
{%- extends "base.html" -%}
-{%- set uglyurls = (config.extra.uglyurls or false) -%}
-{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
+
{%- block seo -%}
{{- super() -}}
{%- set title = term.name ~ " category" -%}
@@ -13,6 +12,8 @@
{{
}}
{%- endblock seo -%}
{%- block content %}
+{%- set uglyurls = (config.extra.uglyurls or false) -%}
+{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{{ term.name }}
{%- for year, posts in term.pages | group_by(attribute="year") %}
diff --git a/templates/index.html b/templates/index.html
index fc75d95..3b42287 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,9 +3,6 @@ This Template Shows a paginated page of the Posts of a section with a short summ
This Template can also be used directly for the index eg: example.com/ or as the rendering template for Sections, eg: example.com/blog/ example.com/software/
#}
{%- extends "base.html" %}
-{%- set uglyurls = (config.extra.uglyurls or false) -%}
-{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
-
{%- block seo -%}
{{- super() -}}
@@ -28,6 +25,8 @@ This Template can also be used directly for the index eg: example.com/ or as the
{%- block content %}
+{%- set uglyurls = (config.extra.uglyurls or false) -%}
+{%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %}
{%- set pages = paginator.pages if paginator else section.pages %}
{% for page in pages %}
diff --git a/templates/tags/list.html b/templates/tags/list.html
index bbe195d..57ab343 100644
--- a/templates/tags/list.html
+++ b/templates/tags/list.html
@@ -1,6 +1,4 @@
{%- extends "base.html" -%}
-{%- set uglyurls = (config.extra.uglyurls or false) -%}
-{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{%- block seo -%}
{{- super() -}}
{%- set title = "Tags" -%}
@@ -13,6 +11,8 @@
{{
}}
{%- endblock seo -%}
{%- block content %}
+ {%- set uglyurls = (config.extra.uglyurls or false) -%}
+ {%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{{ terms | length }} {{}}
diff --git a/templates/tags/single.html b/templates/tags/single.html
index 02593a5..333fac9 100644
--- a/templates/tags/single.html
+++ b/templates/tags/single.html
@@ -1,6 +1,4 @@
{%- extends "base.html" -%}
-{%- set uglyurls = (config.extra.uglyurls or false) -%}
-{%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{%- block seo -%}
{{- super() -}}
{%- set title = term.name ~ " tag" -%}
@@ -13,6 +11,8 @@
{{
}}
{%- endblock seo -%}
{%- block content %}
+ {%- set uglyurls = (config.extra.uglyurls or false) -%}
+ {%- if config.extra.search_library -%}{%- if config.extra.search_library == "offline" -%}{%- set uglyurls = true -%}{%- endif -%}{%- endif -%}
{{ term.name }}
{%- for year, posts in term.pages | group_by(attribute="year") %}
--
cgit v1.3.1