Get these term and terms templates right

This commit is contained in:
Eryn Wells 2022-10-14 14:28:03 -07:00
parent 28a547ea92
commit d1fbd6e344
3 changed files with 47 additions and 24 deletions

View file

@ -4,24 +4,14 @@
{{ define "main" }}
<header class="page">
<h1>Term: {{ .Page.Title }}</h1>
<h1>{{ .Title }}</h1>
</header>
<h2>Pages</h2>
<ul>
{{- range .Pages -}}
{{- range .Pages -}}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{- end -}}
{{- end -}}
</ul>
<h2>Terms</h2>
<pre>{{ jsonify (dict "indent" " ") .Data.Terms }}</pre>
<ul>
{{- range $term, $page := .Data.Terms.Alphabetical -}}
<li>{{ $term }} -- {{ $page }}</li>
{{- end -}}
</ul>
{{ end }}
{{ define "footer" }}