From 6b5746e38d4bcb92d666e9c760cc074ad802a553 Mon Sep 17 00:00:00 2001 From: Salif Mehmed Date: Sat, 9 Nov 2024 23:08:10 +0200 Subject: [PATCH] Fix Zola bug about minified js --- templates/partials/head.html | 9 +++++---- templates/partials/math.html | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/partials/head.html b/templates/partials/head.html index f61778d..8732eb5 100644 --- a/templates/partials/head.html +++ b/templates/partials/head.html @@ -328,15 +328,16 @@ {%- endif %} - +{%- if not config.extra.disable_default_favicon %} +{%- endif %} - {%- if page.extra.math | default(value=config.extra.math) %} - {% include "partials/math.html" %} - {%- endif %} +{%- if page.extra.math | default(value=config.extra.math) %} + {% include "partials/math.html" %} +{%- endif %} {% include "injects/head.html" ignore missing %} diff --git a/templates/partials/math.html b/templates/partials/math.html index a9b1abd..358e78a 100644 --- a/templates/partials/math.html +++ b/templates/partials/math.html @@ -11,8 +11,8 @@ // customised options // • auto-render specific keys, e.g.: delimiters: [ - { left: "$$", right: "$$", display: true }, - { left: "$", right: "$", display: false }, + { left: `$$`, right: `$$`, display: true }, + { left: `$`, right: `$`, display: false }, ], // • rendering keys, e.g.: throwOnError: false,