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/aplayer-js.html | 50 ++++++++++++++++++++++++++++ layouts/_partials/scripts/fancybox-js.html | 4 +++ layouts/_partials/scripts/littlefoot-js.html | 6 ++++ layouts/_partials/scripts/toc-js.html | 41 +++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 layouts/_partials/scripts/aplayer-js.html create mode 100644 layouts/_partials/scripts/fancybox-js.html create mode 100644 layouts/_partials/scripts/littlefoot-js.html create mode 100644 layouts/_partials/scripts/toc-js.html (limited to 'layouts/_partials/scripts') diff --git a/layouts/_partials/scripts/aplayer-js.html b/layouts/_partials/scripts/aplayer-js.html new file mode 100644 index 00000000..2b22702c --- /dev/null +++ b/layouts/_partials/scripts/aplayer-js.html @@ -0,0 +1,50 @@ +{{ if .Params.aplayer }} + +{{ end }} diff --git a/layouts/_partials/scripts/fancybox-js.html b/layouts/_partials/scripts/fancybox-js.html new file mode 100644 index 00000000..c9543a01 --- /dev/null +++ b/layouts/_partials/scripts/fancybox-js.html @@ -0,0 +1,4 @@ +{{- if or (in .Section "posts") (in .Section "cards") (in .Section "library") (eq .Type "single") }} + + +{{- end }} diff --git a/layouts/_partials/scripts/littlefoot-js.html b/layouts/_partials/scripts/littlefoot-js.html new file mode 100644 index 00000000..2601b7c4 --- /dev/null +++ b/layouts/_partials/scripts/littlefoot-js.html @@ -0,0 +1,6 @@ + diff --git a/layouts/_partials/scripts/toc-js.html b/layouts/_partials/scripts/toc-js.html new file mode 100644 index 00000000..110f2357 --- /dev/null +++ b/layouts/_partials/scripts/toc-js.html @@ -0,0 +1,41 @@ +{{ if .Params.toc }} + +{{ end }} -- cgit v1.2.3