From b4969fde502b81ac5ea045cbf2d24c2db4bba8eb Mon Sep 17 00:00:00 2001 From: Jieiku Date: Thu, 20 Aug 2026 17:06:58 -0700 Subject: Update for Zola 0.23.4 --- templates/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index 3c2c1b1..fc75d95 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,7 +3,7 @@ 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 | default(value=false) -%} +{%- set uglyurls = (config.extra.uglyurls or false) -%} {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set uglyurls = true %}{% endif %}{% endif %} @@ -65,7 +65,7 @@ This Template can also be used directly for the index eg: example.com/ or as the {%- if paginator %}{{}}{% endif %} {%- endif %} - {%- if config.extra.recent | default(value=true) %} + {%- if (config.extra.recent if config.extra.recent is defined else true) %} {#- The following line is checking if the template is being used for the root or a section #} {%- if current_path is matching(pat="^(/[[:alpha:]][[:alpha:]])?(/page/[[:digit:]]+)?/$") %} {%- set sec = "" %} @@ -87,7 +87,7 @@ This Template can also be used directly for the index eg: example.com/ or as the
{{}} - {%- set recent_items=config.extra.recent_items | default(value=9) -%} + {%- set recent_items=(config.extra.recent_items if config.extra.recent_items is defined else 9) -%} {%- for page in section_item.pages[:recent_items] -%} {{}} {%- endfor %} -- cgit v1.3.1