Use article tag for pages of pages

master
Will Faught 3 years ago
parent 932192e28c
commit 2747f38c14

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

@ -14,18 +14,20 @@
{{ end }}
{{ else }}
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
{{ range $p.PageGroups }}
<h5 class="text-center">{{ .Key }}</h5>
{{ range .Pages }}
<p class="text-center">
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{ with .Description }}
<br>
{{ . | markdownify }}
<article>
{{ range $p.PageGroups }}
<h5 class="text-center">{{ .Key }}</h5>
{{ range .Pages }}
<p class="text-center">
<a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a>
{{ with .Description }}
<br>
{{ . | markdownify }}
{{ end }}
</p>
{{ end }}
</p>
{{ end }}
{{ end }}
{{ end }}
</article>
{{ if or $p.HasPrev $p.HasNext }}
<section>
<div class="d-flex justify-content-center">

Loading…
Cancel
Save