Files
website/layouts/book/frontcover.html
2026-02-28 10:23:39 -06:00

11 lines
331 B
HTML

{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
{{ $chapters := where .Site.AllPages "Params.tags" .Params.tags }}
{{ range sort $chapters "Params.chapterno" "asc" }}
{{ if gt .Params.chapterno 0 }}
<li><a href="{{ .Permalink }}">{{ .Params.chapterno }}. {{ .Title }}</a></li>
{{ end }}
{{ end }}
{{ end }}