update some layouts

This commit is contained in:
loikein 2023-04-25 15:19:09 +01:00
commit 9ef1d4b721
5 changed files with 38 additions and 30 deletions
layouts/book

View file

@ -19,10 +19,10 @@
{{ end }}
{{- range ($indexScratch.Get "sections").ByTitle -}}
<p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>
<p><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></p>
<ul>
{{- range .Pages.ByTitle -}}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
{{- end -}}
</ul>
{{- end -}}