From 70cfd74bcfab6a74dd9755c1946109e6576158a8 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 18 Jul 2025 18:46:45 +0800 Subject: refactor: make partials of all embeded JavaScript code --- layouts/_partials/scripts.html | 67 +++--------------------------------------- 1 file changed, 4 insertions(+), 63 deletions(-) (limited to 'layouts/_partials/scripts.html') diff --git a/layouts/_partials/scripts.html b/layouts/_partials/scripts.html index 12beca10..ac62974b 100644 --- a/layouts/_partials/scripts.html +++ b/layouts/_partials/scripts.html @@ -1,67 +1,8 @@ - {{- range .Site.Params.externalJSFiles }} {{- end }} -{{- if or (in .Section "posts") (in .Section "cards") (in .Section "library") (eq .Type "single") }} - - -{{- end }} - -{{ if .Params.aplayer }} - -{{ end }} - - +{{ partial "scripts/toc-js" . }} +{{ partial "scripts/littlefoot-js" . }} +{{ partial "scripts/fancybox-js" . }} +{{ partial "scripts/aplayer-js" . }} -- cgit v1.2.3