diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-06-08 22:11:32 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-06-08 22:11:32 +0700 |
commit | a1a5e22cce5da1d3c2df63abc4c284a44dc065b5 (patch) | |
tree | 8f938365420f0e8811e00c41cb1779d2e3ea6982 /layouts/_default | |
parent | 627994a70827b75dc9e433c218b2305d6b8e6c5a (diff) | |
download | blog-a1a5e22cce5da1d3c2df63abc4c284a44dc065b5.tar.gz |
Add layout for comics
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/single.html | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index b3783eb..2c87ed3 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,10 +12,21 @@ <h1 class="p-name post-title{{ if .Params.favorite }} favorite{{end}}{{ if .Params.draft }} draft{{end}}">{{ trim .Title " " }}</h1> </header> <div class="content e-content"> + <!-- Comics--> + {{ if in .Params.categories "comics" }} + <center> + {{ partial "comicNav.html" . }} {{ .Content }} - {{ if in .Params.categories "book review" }} - <hr> - {{ i18n "BookShare" }} + {{ partial "comicNav.html" . }} + <center> + {{ else }} + <!-- normal content --> + {{ .Content }} + <!-- book reviews --> + {{ if in .Params.categories "book review" }} + <hr> + {{ i18n "BookShare" }} + {{ end }} {{ end }} </div> {{ partial "postInfo.html" . }} |