diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-09 13:48:55 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-09 14:40:56 +0100 |
commit | 9915f2a8a2a222753ff48dda98e45cb5cd07939d (patch) | |
tree | b064cfdd4a3ca83eed756d810a489d6a37e5f141 /layouts/reading | |
parent | dbc549bd7849e5732d418d02c7e8e35cb9fa58cb (diff) |
Changes for table of contents for books pages
Diffstat (limited to 'layouts/reading')
-rw-r--r-- | layouts/reading/books/single.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/layouts/reading/books/single.html b/layouts/reading/books/single.html index 5363190..98b7d92 100644 --- a/layouts/reading/books/single.html +++ b/layouts/reading/books/single.html @@ -2,14 +2,19 @@ <style type="text/css" media="screen"> li { - margin-bottom: 1.2em; + margin-bottom: 0; } </style> -<h2 class="title">{{ .Title }}</h2> +<h1 class="title">{{ .Title }}</h1> +{{ if .Params.toc }} + <aside> + {{.TableOfContents }} + </aside> +{{ end }} {{ .Content }} -- {{ .Date.Format "2 Jan 2006" }} +- Started: {{ .Date.Format "2 Jan 2006" }} {{ end }} |