Move partials under paige directory
This commit is contained in:
35
layouts/partials/paige/pages.html
Normal file
35
layouts/partials/paige/pages.html
Normal file
@@ -0,0 +1,35 @@
|
||||
{{ if .Pages }}
|
||||
{{ if .Params.paige.show_full_pages }}
|
||||
{{ $p := .Paginate .Pages }}
|
||||
{{ range $p.Pages }}
|
||||
{{ .Scratch.Set "paige_show_full_pages" true }}
|
||||
{{ partial "paige/article.html" . }}
|
||||
{{ end }}
|
||||
{{ if or $p.HasPrev $p.HasNext }}
|
||||
<section>
|
||||
<div class="d-flex justify-content-center">
|
||||
{{ partial "paige/pagination.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
|
||||
<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 }}
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ if or $p.HasPrev $p.HasNext }}
|
||||
<section>
|
||||
<div class="d-flex justify-content-center">
|
||||
{{ partial "paige/pagination.html" . }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user