From d2450a5fae63fbddc3840589fb574130aff78a34 Mon Sep 17 00:00:00 2001
From: HidegonSan <68275072+HidegonSan@users.noreply.github.com>
Date: Fri, 1 Dec 2023 20:28:13 +0900
Subject: [PATCH] bundle auto-render and copy-tex
---
layouts/partials/head/katex.html | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/layouts/partials/head/katex.html b/layouts/partials/head/katex.html
index beb28f2..bd6f575 100644
--- a/layouts/partials/head/katex.html
+++ b/layouts/partials/head/katex.html
@@ -40,18 +40,19 @@
{{- end -}}
{{- end -}}
- {{- -}}
- {{- with (slice $katex_license_js (resources.Get "js/katex/contrib/auto-render.min.js")) | resources.Concat "assets/js/katex/contrib/auto-render.min.js" | fingerprint -}}
-
- {{- end -}}
+ {{- $auto_render_js := resources.Get "js/katex/contrib/auto-render.min.js" -}}
+ {{- $copy_tex_js := resources.Get "js/katex/contrib/copy-tex.min.js" -}}
+
+ {{- $auto_render_and_copy_tex_js := (
+ slice
+ $katex_license_js
+ $auto_render_js
+ $copy_tex_js
+ )
+ | resources.Concat "assets/js/katex/contrib/auto-render-and-copy-tex.min.js"
+ -}}
- {{- with (slice $katex_license_js (resources.Get "js/katex/contrib/copy-tex.min.js")) | resources.Concat "assets/js/katex/contrib/copy-tex.min.js" | fingerprint -}}
+ {{- with $auto_render_and_copy_tex_js | fingerprint -}}