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,18 +14,20 @@
{{ end }} {{ end }}
{{ else }} {{ else }}
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }} {{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
{{ range $p.PageGroups }} <article>
<h5 class="text-center">{{ .Key }}</h5> {{ range $p.PageGroups }}
{{ range .Pages }} <h5 class="text-center">{{ .Key }}</h5>
<p class="text-center"> {{ range .Pages }}
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> <p class="text-center">
{{ with .Description }} <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
<br> {{ with .Description }}
{{ . | markdownify }} <br>
{{ . | markdownify }}
{{ end }}
</p>
{{ end }} {{ end }}
</p> {{ end }}
{{ end }} </article>
{{ end }}
{{ 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">