add css for dl; minor adjustments to book layouts

This commit is contained in:
loikein 2023-04-25 18:14:27 +01:00
commit 7595e2e6b9
5 changed files with 120 additions and 61 deletions
layouts/book

View file

@ -13,6 +13,18 @@
{{ end }}
<section class="list-page">
<!-- preambles -->
<ul>
{{ range .Pages.ByTitle }}
{{ if .IsPage }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
{{ end }}
{{ end }}
</ul>
<!-- sub categories & pages -->
{{ $indexScratch := .Scratch }}
{{ range .Sections }}
{{ $indexScratch.Add "sections" (slice . ) }}