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/archive.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/archive.html') 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 %} -- cgit v1.3.1