From 75d5209e5c9dc8c9c22a5a865f7c7f8166b282e6 Mon Sep 17 00:00:00 2001 From: Ngô Ngọc Đức Huy Date: Mon, 16 Aug 2021 10:28:54 +0700 Subject: Switch data representation to definition list Thank the author of the blog post [1] that helped me writing the CSS [1]: https://www.the-art-of-web.com/css/format-dl/ --- layouts/_default/books.html | 46 ++++++++++++++++++++++++++++++++++++++++++++ layouts/_default/comic.html | 42 ++++++++++++++++++++-------------------- layouts/_default/single.html | 6 ------ 3 files changed, 67 insertions(+), 27 deletions(-) create mode 100644 layouts/_default/books.html (limited to 'layouts/_default') diff --git a/layouts/_default/books.html b/layouts/_default/books.html new file mode 100644 index 0000000..c4b7589 --- /dev/null +++ b/layouts/_default/books.html @@ -0,0 +1,46 @@ +{{ define "main" }} +{{ if .Menus }} + +{{ end }} + +
+
+

{{ trim .Title " " }}

+
+
+

Book info

+
+
Book
+
{{ .Params.book }}
+
Authors
+ {{ range $author := .Params.authors }} +
{{ $author }}
+ {{ end }} +
ISBN
+
{{ .Params.isbn }}
+
Genres
+ {{ range $genre := .Params.genres }} +
{{ $genre }}
+ {{ end }} +
Language
+
{{ .Language.LanguageName }}
+
+ {{ .Content }} +
+ {{ i18n "BookShare" }} +
+ {{ 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/comic.html b/layouts/_default/comic.html index 1b3e33e..2758deb 100644 --- a/layouts/_default/comic.html +++ b/layouts/_default/comic.html @@ -1,34 +1,34 @@ {{ 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" . }} +
+
+

{{ 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" . }} + {{ partial "paginationPost.html" . }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index c2ef2cf..7ba428d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -12,13 +12,7 @@

{{ trim .Title " " }}

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