Use article tag for pages of pages

This commit is contained in:
Will Faught
2022-12-17 10:16:56 -08:00
parent 932192e28c
commit 2747f38c14
2 changed files with 15 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
{{ partial "paige-article.html" . }} {{ partial "paige-article.html" . }}
{{ if .Pages }} {{ if .Pages }}
<section> <article>
<ul class="list-inline text-center"> <ul class="list-inline text-center">
{{ range (sort .Pages "Title") }} {{ range (sort .Pages "Title") }}
<li class="list-inline-item"> <li class="list-inline-item">
@@ -9,6 +9,6 @@
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
</section> </article>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@@ -14,6 +14,7 @@
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }} {{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
<article>
{{ range $p.PageGroups }} {{ range $p.PageGroups }}
<h5 class="text-center">{{ .Key }}</h5> <h5 class="text-center">{{ .Key }}</h5>
{{ range .Pages }} {{ range .Pages }}
@@ -26,6 +27,7 @@
</p> </p>
{{ end }} {{ end }}
{{ end }} {{ end }}
</article>
{{ if or $p.HasPrev $p.HasNext }} {{ if or $p.HasPrev $p.HasNext }}
<section> <section>
<div class="d-flex justify-content-center"> <div class="d-flex justify-content-center">