From f2f022390f3c6dd377e17555996d988bc26b1861 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Wed, 25 Sep 2024 16:17:36 +0800 Subject: [PATCH] =?UTF-8?q?Test:=20=E6=B5=8B=E8=AF=95=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/params.toml | 3 +- go.mod | 4 +-- go.sum | 8 ++--- layouts/partials/custom.html | 62 ------------------------------------ 4 files changed, 8 insertions(+), 69 deletions(-) delete mode 100644 layouts/partials/custom.html diff --git a/config/_default/params.toml b/config/_default/params.toml index 94c7d1c..4578533 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -597,7 +597,8 @@ disableThemeInject = false # "eruda", "vConsole" supported type = "eruda" -# Define custom partials to be included in the /layouts/partials/ directory +# FixIt 0.3.12 | NEW Custom partials options +# Defined custom partials to be included in the /layouts/partials/ directory # Depends on open custom blocks https://fixit.lruihao.cn/references/blocks/ [customPartials] head = [ diff --git a/go.mod b/go.mod index 5235cb7..0299305 100644 --- a/go.mod +++ b/go.mod @@ -4,8 +4,8 @@ go 1.20 require ( github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 // indirect - github.com/hugo-fixit/FixIt v0.3.12-0.20240910094900-fad3c988deab // indirect - github.com/hugo-fixit/cmpt-mdevtools v1.0.0 // indirect + github.com/hugo-fixit/FixIt v0.3.12-0.20240925083026-0eab22d0362a // indirect + github.com/hugo-fixit/cmpt-mdevtools v1.0.1 // indirect github.com/hugo-fixit/component-projects v1.1.3 // indirect github.com/hugo-fixit/hugo-json-feed v1.0.2 // indirect github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect diff --git a/go.sum b/go.sum index a00f810..c55dbc6 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,9 @@ github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 h1:G0A3HBcU7zu/FZPEVlzexO4GBNs1CAUVNwoRkekUbdU= github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7/go.mod h1:6vXHaAZv1p9meW2mZ5KmlWlu5W9YiIpUTkHGWwkp3Pk= -github.com/hugo-fixit/FixIt v0.3.12-0.20240910094900-fad3c988deab h1:FGIq9PptHv7bCWjjFXgahNF/cNZMmCof94UykwQbpcE= -github.com/hugo-fixit/FixIt v0.3.12-0.20240910094900-fad3c988deab/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= -github.com/hugo-fixit/cmpt-mdevtools v1.0.0 h1:6xCY1E2HqyTWioEcOPsmH7Wm12YKSPxngWK72PvLaKU= -github.com/hugo-fixit/cmpt-mdevtools v1.0.0/go.mod h1:+1tfeT4ugFNa1kx/3yQF0NUup2Fejiq7EwvrpcY2xWw= +github.com/hugo-fixit/FixIt v0.3.12-0.20240925083026-0eab22d0362a h1:oO4rKG2xHkeZprFX5iSO2vLGGMcZOMupvpZdFFEMtgA= +github.com/hugo-fixit/FixIt v0.3.12-0.20240925083026-0eab22d0362a/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= +github.com/hugo-fixit/cmpt-mdevtools v1.0.1 h1:IdUhqO1ktKsJF5D0ReU37PU2CQCpgjY4EFFQ0S69sKQ= +github.com/hugo-fixit/cmpt-mdevtools v1.0.1/go.mod h1:+1tfeT4ugFNa1kx/3yQF0NUup2Fejiq7EwvrpcY2xWw= github.com/hugo-fixit/component-projects v1.1.3 h1:iK6q07CpFsnnJGh8q2stVjv6Lr77dTM9o+P7LGDEYmE= github.com/hugo-fixit/component-projects v1.1.3/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c= github.com/hugo-fixit/hugo-json-feed v1.0.2 h1:xZABGHuoX/u0hnoF5AoP7ane7l9T7UNmlOAiFdWvBvA= diff --git a/layouts/partials/custom.html b/layouts/partials/custom.html deleted file mode 100644 index 8af7898..0000000 --- a/layouts/partials/custom.html +++ /dev/null @@ -1,62 +0,0 @@ -{{- define "custom-head" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.head -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-profile" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.profile -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-aside" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.aside -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-comment" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.comment -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-footer" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.footer -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-widgets" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.widgets -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-assets" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.assets -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-post__footer:before" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.postFooterBefore -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}} - -{{- define "custom-post__footer:after" -}} - {{- $ctx := . -}} - {{- range .Site.Params.customPartials.postFooterAfter -}} - {{- partial . $ctx -}} - {{- end -}} -{{- end -}}