From 409a5e501491f60126f4c1bfd7175c412d75f30a Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 28 Nov 2024 23:33:32 +0800 Subject: refactor(single): better single page - comment post tags section for it's not used for now - remove post footer content config for it's not used nor planned to be used - style code - change language to zh --- themes/yinyang/layouts/_default/single.html | 40 +++++++++++------------------ 1 file changed, 15 insertions(+), 25 deletions(-) diff --git a/themes/yinyang/layouts/_default/single.html b/themes/yinyang/layouts/_default/single.html index 53401748..f0587f15 100644 --- a/themes/yinyang/layouts/_default/single.html +++ b/themes/yinyang/layouts/_default/single.html @@ -1,7 +1,6 @@ - + {{ partial "head.html" . }} -
@@ -11,7 +10,6 @@ -
{{ if in .Site.Params.mainSections .Type }} @@ -31,21 +29,20 @@ {{ end }} / - - … - Views - + … Views {{ end }}
- -
+ + +
{{ .Site.Params.postHeaderContent | safeHTML }} {{ .Content }}
- -
+ + + + + {{ if in .Site.Params.mainSections .Type }}
@@ -74,22 +67,19 @@
{{ end }} - - - + {{ partial "footer.html" . }}
+ + +
{{ partial "scripts.html" . }} {{ if .Site.Params.extraBody }} {{ .Site.Params.extraBody | safeHTML }} {{ end }} - - \ No newline at end of file -- cgit v1.2.3