Use article tag for pages of pages
This commit is contained in:
@@ -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 }}
|
||||||
|
@@ -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">
|
||||||
|
Reference in New Issue
Block a user