From c2d72e09747a2a4abe9602e1ba49a1b4649c9d3c Mon Sep 17 00:00:00 2001
From: Jieiku
Date: Fri, 14 Aug 2026 15:10:15 -0700
Subject: Update for Zola 0.23.3
---
templates/partials/head_js.html | 52 ++++++++++++++++++++---------------------
1 file changed, 26 insertions(+), 26 deletions(-)
(limited to 'templates/partials/head_js.html')
diff --git a/templates/partials/head_js.html b/templates/partials/head_js.html
index 2a16b6d..af82de8 100644
--- a/templates/partials/head_js.html
+++ b/templates/partials/head_js.html
@@ -1,36 +1,36 @@
-{#- JAVASCRIPT #}
+{#- JAVASCRIPT -#}
{%- set integrity = config.extra.integrity | default(value=true) -%}
- {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{% set integrity = false %}{% endif %}{% endif %}
+ {%- if config.extra.search_library %}{%- if config.extra.search_library == "offline" %}{%- set integrity = false -%}{%- endif -%}{%- endif -%}
{%- set search_library=config.extra.search_library | default(value="elasticlunr") -%}
- {%- set preStyle = false %}
+ {%- set preStyle = false -%}
- {%- if config.extra.fonts %}{%- for i in config.extra.fonts %}
- {%- if i.url is matching("^http[s]?://") %}
- {%- set preStyle = true %}
- {%- endif %}
- {%- endfor %}{%- endif %}
+ {%- if config.extra.fonts -%}{%- for i in config.extra.fonts -%}
+ {%- if i.url is matching(pat="^http[s]?://") -%}
+ {%- set preStyle = true -%}
+ {%- endif -%}
+ {%- endfor -%}{%- endif -%}
- {%- if config.extra.fontawesome %}
- {%- set preStyle = true %}
- {%- endif %}
+ {%- if config.extra.fontawesome -%}
+ {%- set preStyle = true -%}
+ {%- endif -%}
- {%- if config.extra.math or page.extra.math %}
+ {%- if config.extra.math or page?.extra?.math -%}
{%- set katex_css=config.extra.katex_css | default(value="katex.min.css") -%}
- {%- if katex_css %}
- {%- set preStyle = true %}
- {%- endif %}
- {%- endif %}
+ {%- if katex_css -%}
+ {%- set preStyle = true -%}
+ {%- endif -%}
+ {%- endif -%}
-{%- if config.mode != "serve" -%}{%- set notserve = true %}{%- endif %}
-{%- if config.extra.js_bundle %}
+{%- if config.mode != "serve" -%}{%- set notserve = true -%}{%- endif -%}
+{%- if config.extra.js_bundle -%}
- {%- if config.build_search_index %}
+ {%- if config.build_search_index -%}
{%- if notserve and config.extra.pwa | default(value=false) %}
{%- else %}
- {%- endif %}
+ {%- endif -%}
{%- else %}
{%- if notserve and config.extra.pwa | default(value=false) %}
@@ -117,7 +117,7 @@
{#- https://katex.org/docs/autorender.html #}
{#- https://github.com/KaTeX/KaTeX/ #}
{#- https://github.com/KaTeX/KaTeX/tree/main/contrib/mathtex-script-type/ #}
-{%- if config.extra.math or page.extra.math %}
+{%- if config.extra.math or page?.extra?.math %}
{%- set katex_bundle=config.extra.katex_bundle | default(value="js/katexbundle.min.js") -%}
{%- if katex_bundle %}
@@ -125,23 +125,23 @@
{%- else %}
{%- set katex_js=config.extra.katex_js | default(value="js/katex.min.js") -%}
- {%- if katex_js %}{%- if katex_js is matching("^http[s]?://") %}
+ {%- if katex_js %}{%- if katex_js is matching(pat="^http[s]?://") %}
{%- else %}
{%- endif %}{%- endif %}
{%- set mathtex_js=config.extra.mathtex_js | default(value="js/mathtex-script-type.min.js") -%}
- {%- if mathtex_js %}{%- if mathtex_js is matching("^http[s]?://") %}
+ {%- if mathtex_js %}{%- if mathtex_js is matching(pat="^http[s]?://") %}
{%- else %}
{%- endif %}{%- endif %}
- {%- if config.extra.math_auto_render or page.extra.math_auto_render %}
+ {%- if config.extra.math_auto_render or page?.extra?.math_auto_render %}
{%- set katex_autorender_js=config.extra.katex_autorender_js | default(value="js/katex-auto-render.min.js") -%}
{%- if katex_autorender_js %}
- {%- if katex_autorender_js is matching("^http[s]?://") %}
+ {%- if katex_autorender_js is matching(pat="^http[s]?://") %}
{%- else %}
@@ -161,4 +161,4 @@
-{#- End of head_js partial -#}
+{#- End of head_js partial #}
--
cgit v1.3.1