Restructure all pages under article tag

This commit is contained in:
Will Faught
2022-12-11 00:09:41 -08:00
parent 6356e860e4
commit f74704bb8a
9 changed files with 122 additions and 251 deletions

View File

@@ -1,34 +1,4 @@
{{ define "main" }}
<section>
<header>
<div class="row text-center justify-content-center">
<div class="col">
<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">
{{ 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>
{{ partial "paige_content.html" . }}
{{ partial "paige_pages.html" . }}
{{ end }}