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 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 layouts/_default/books.html (limited to 'layouts/_default/books.html') 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 }} -- cgit 1.4.1