Add layouts/_default/term.html

master
Will Faught 3 years ago
parent 9dff05c402
commit ad4063be70

@ -0,0 +1,34 @@
{{ define "main" }}
<section>
<header>
<div class="row text-center justify-content-center">
<div class="col" style="max-width:100ch">
<h1 class="display-5 fw-bold">
{{ .Title }}
</h1>
</div>
</div>
</header>
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
<section>
<div class="row">
<div class="col">
<div class="mx-auto text-center" style="max-width:100ch">
{{ range $p.PageGroups }}
<h5>{{ .Key }}</h5>
{{ range .Pages }}
<p>
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{- if .Description -}}
<br/>
{{- .Description | markdownify -}}
{{- end -}}
</p>
{{ end }}
{{ end }}
</div>
</div>
</div>
</section>
</section>
{{ end }}
Loading…
Cancel
Save