aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorJieiku2026-08-20 17:06:58 -0700
committerJieiku2026-08-20 17:06:58 -0700
commitb4969fde502b81ac5ea045cbf2d24c2db4bba8eb (patch)
tree16c4ab415d7296b917b8126eadde0792bfd2d15f /templates/index.html
parentaaa4fae60d0e1b87af917829af1b1b4cceca9e31 (diff)
downloadabridge-b4969fde502b81ac5ea045cbf2d24c2db4bba8eb.tar.gz
abridge-b4969fde502b81ac5ea045cbf2d24c2db4bba8eb.tar.bz2
abridge-b4969fde502b81ac5ea045cbf2d24c2db4bba8eb.zip
Update for Zola 0.23.4
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html6
1 files changed, 3 insertions, 3 deletions
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 %}{{<numpagination paginator={paginator} config={config} />}}{% endif %}
{%- endif %}
</div>
- {%- 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
<div class="sblock">
<div class="blockdiv sticky">
<span class="b s150">{{<translate key="Recent" default="Recent" i18n={i18n} />}}</span>
- {%- 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] -%}
{{<page_listing page={page} config={config} />}}
{%- endfor %}