From 4b42f34de53bec80412a4af6ccc6512cf42c6fc0 Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Fri, 21 Aug 2026 19:16:29 +0800 Subject: [PATCH] fix: katex rendering (#3062) --- layouts/partials/head.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ae42c6cc..7f9ad9f8 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -188,9 +188,7 @@ {{ if .Site.Params.rtl | default false }} {{ $jsResources = $jsResources | append (resources.Get "js/rtl.js") }} {{ end }} - {{ if .Page.HasShortcode "katex" }} - {{ $jsResources = $jsResources | append (resources.Get "js/katex-render.js") }} - {{ end }} + {{ $jsResources = $jsResources | append (resources.Get "js/katex-render.js") }} {{ $jsResources = $jsResources | append (resources.Get "js/menu-a11y.js") }} {{ $jsResources = $jsResources | append (resources.Get "js/print-support.js") }} {{ $jsResources = $jsResources | append (resources.Get "js/email.js") }}