From 4f1a558171048f0032cee47bd5da711177a3cdb5 Mon Sep 17 00:00:00 2001 From: Chen Xianmin Date: Mon, 17 Oct 2022 07:36:15 +0800 Subject: use default single.html --- layouts/_default/single.html | 88 ++++++++++++++++++++++++++++++++------------ layouts/post/single.html | 74 ------------------------------------- 2 files changed, 65 insertions(+), 97 deletions(-) delete mode 100644 layouts/post/single.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index db98bd8..5622fb4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,32 +1,74 @@ {{ define "content" -}} -
- -
-

{{ .Title }}

- {{ partial "post/i18nlist.html" . }} - -
+
+ +
+

{{ .Title }}

+ {{ partial "post/i18nlist.html" . }} + {{ partial "post/meta.html" . }} +
+ + + {{ partial "post/toc.html" . }} - - {{ partial "post/toc.html" . }} - -
+ +
{{ .Content }} -
+
+ + + {{ partial "post/copyright.html" . }} + + + + {{ partial "post/reward.html" . }} + + + +
- - {{ partial "post/reward.html" . }} -
+ + {{ if and (.Params.author | default .Site.Author.name) (.Params.showAuthorInfo | default .Site.Params.showAuthorInfo) }} + {{ partial "author_info.html" (dict "author" (.Params.author | default .Site.Author.name) "context" $) }} + {{ end }} - -{{ partial "comments.html" . }} + + {{ partial "comments.html" . }} {{- end }} diff --git a/layouts/post/single.html b/layouts/post/single.html deleted file mode 100644 index 5622fb4..0000000 --- a/layouts/post/single.html +++ /dev/null @@ -1,74 +0,0 @@ -{{ define "content" -}} -
- -
-

{{ .Title }}

- {{ partial "post/i18nlist.html" . }} - {{ partial "post/meta.html" . }} -
- - - {{ partial "post/toc.html" . }} - - - -
- {{ .Content }} -
- - - {{ partial "post/copyright.html" . }} - - - - {{ partial "post/reward.html" . }} - - - -
- - - {{ if and (.Params.author | default .Site.Author.name) (.Params.showAuthorInfo | default .Site.Params.showAuthorInfo) }} - {{ partial "author_info.html" (dict "author" (.Params.author | default .Site.Author.name) "context" $) }} - {{ end }} - - - - {{ partial "comments.html" . }} -{{- end }} -- cgit v1.2.3