From 2b936cb6ade51aca3432a7882f20937b4a0c3ccb Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 2 Apr 2025 16:11:55 +0800 Subject: [PATCH] :sparkles: Feat: add gist shortcode embed in theme The gist shortcode was deprecated in hugo v0.143.0 --- layouts/partials/init/index.html | 2 +- layouts/shortcodes/gist.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/gist.html diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index 10d17a49..5bf1c313 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.17-8212d6fd" -}} +{{- .Scratch.Set "version" "v0.3.17-e2afa113" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/shortcodes/gist.html b/layouts/shortcodes/gist.html new file mode 100644 index 00000000..ecbbf9b1 --- /dev/null +++ b/layouts/shortcodes/gist.html @@ -0,0 +1,2 @@ + +{{- /* EOF */ -}}