hugo-tufte/layouts/book/chapters.html
2023-04-29 05:18:01 +01:00

30 lines
445 B
HTML

{{ define "main" }}
<div id="layout">
<article>
{{ partial "content.header.html" . }}
{{ with .Content }}
<section>
{{ . }}
</section>
{{ end }}
<section class="list-page">
<ul>
{{ range .Pages.ByTitle }}
{{ if .IsPage }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}</a></li>
{{ end }}
{{ end }}
</ul>
</section>
{{ partial "footer.html" . }}
{{ partial "nav.html" . }}
</article>
</div>
{{ end }}