From f708b6d62a9f006ab0b23b5ca85e893c7a7c9cc3 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Sun, 4 Jul 2021 22:14:17 +0700 Subject: Separate the comic to its own layout --- layouts/_default/comic.html | 37 +++++++++++++++++++++++++++++++++++++ layouts/_default/single.html | 23 ++++------------------- 2 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 layouts/_default/comic.html diff --git a/layouts/_default/comic.html b/layouts/_default/comic.html new file mode 100644 index 0000000..1b3e33e --- /dev/null +++ b/layouts/_default/comic.html @@ -0,0 +1,37 @@ +{{ define "main" }} +{{ if .Menus }} + +{{ end }} + +
+
+
+

{{ trim .Title " " }}

+ {{ if in .Params.categories "comics" }} +
+ {{ end}} +
+
+
+ {{ partial "comicNav.html" . }} + {{ .Params.Alt}} + {{ partial "comicNav.html" . }} + {{ .Content }} +
+
+ {{ partial "postInfo.html" . }} +
+ +{{ if and (.Site.Params.paginationSinglePost) (ne .Type "page") }} + {{ partial "paginationPost.html" . }} +{{ end }} + + +{{ partial "custom-webring.html" }} + +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 977c203..c2ef2cf 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,30 +9,15 @@
- {{ if in .Params.categories "comics" }} -
- {{ end}}

{{ trim .Title " " }}

- {{ if in .Params.categories "comics" }} -
- {{ end}}
- - {{ if in .Params.categories "comics" }} -
- {{ partial "comicNav.html" . }} - {{ .Content }} - {{ partial "comicNav.html" . }} -
- {{ else }} {{ .Content }} - - {{ if in .Params.categories "book review" }} -
- {{ i18n "BookShare" }} - {{ end }} + + {{ if in .Params.categories "book review" }} +
+ {{ i18n "BookShare" }} {{ end }}
{{ partial "postInfo.html" . }} -- cgit 1.4.1