aboutsummaryrefslogtreecommitdiff
path: root/templates/page.html
diff options
context:
space:
mode:
authorJieiku2026-08-20 17:06:58 -0700
committerJieiku2026-08-20 17:06:58 -0700
commitb4969fde502b81ac5ea045cbf2d24c2db4bba8eb (patch)
tree16c4ab415d7296b917b8126eadde0792bfd2d15f /templates/page.html
parentaaa4fae60d0e1b87af917829af1b1b4cceca9e31 (diff)
downloadabridge-b4969fde502b81ac5ea045cbf2d24c2db4bba8eb.tar.gz
abridge-b4969fde502b81ac5ea045cbf2d24c2db4bba8eb.tar.bz2
abridge-b4969fde502b81ac5ea045cbf2d24c2db4bba8eb.zip
Update for Zola 0.23.4
Diffstat (limited to 'templates/page.html')
-rw-r--r--templates/page.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/page.html b/templates/page.html
index 6615602..d8580fa 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -52,7 +52,7 @@
{%- endblock page_header %}
{#- In Page Series Navigation #}
- {%- if config.extra.series | default(value=true) %}
+ {%- if (config.extra.series if config.extra.series is defined else true) %}
{%- if page.extra.series %}
{%- set tag = get_taxonomy_term(kind="tags", term=page.extra.series, lang=lang) %}
@@ -62,7 +62,7 @@
{%- set parts_string %}{{<translate key="Series_parts" default="Series" i18n={i18n} />}}{%- endset %}
{%- set parts_string = parts_string | replace(from="$NUMBER_OF_PARTS", to=page_num) %}
{%- else %}
- {%- set parts_string = config.extra.Series_parts | default(value="Series") | replace(from="$NUMBER_OF_PARTS", to=page_num) %}
+ {%- set parts_string = (config.extra.Series_parts if config.extra.Series_parts else "Series") | replace(from="$NUMBER_OF_PARTS", to=page_num) %}
{%- endif %}
<div class="block">
@@ -100,14 +100,14 @@
{%- endblock comments_body %}
</article>
{%- block toc %}
- {%- if config.extra.toc | default(value=true) %}
+ {%- if (config.extra.toc if config.extra.toc is defined else true) %}
{%- if page.extra.toc %}
{%- set toc = page.toc %}
{%- endif %}
{%- if toc or page.extra.series %}
<div class="sblock">
{%- if page.extra.series %}
- {%- set num_extra_pages = config.extra.series_items | default(value=9) %}
+ {%- set num_extra_pages = (config.extra.series_items if config.extra.series_items is defined else 9) %}
<div class="blockdiv">
<a class="b s150" href="{{ tag.permalink | safe }}{%- if uglyurls %}index.html{%- endif %}">{{ parts_string }}</a><br>
{%- if tag.page_count > num_extra_pages and num_extra_pages > 0 %}
@@ -207,7 +207,7 @@
{%- if page.reading_time %}
{%- if page.reading_time > 2 %}
-{%- set icon_top=config.extra.icon_top | default(value="svgs svgh angu") -%}
+{%- set icon_top=(config.extra.icon_top if config.extra.icon_top else "svgs svgh angu") -%}
<span class="topout">
<span class="topleft"> </span><a href="#" class="top" title="Back to Top">{%- if icon_top %}<i class="{{ icon_top }}"></i>{%- else %}&cuwed;{%- endif %}</a>
</span>