Add paigeshowfullpages page parameter
This commit is contained in:
@@ -83,6 +83,9 @@ the page `content/_index.md`.
|
|||||||
|
|
||||||
The section menu uses the `main` identifier.
|
The section menu uses the `main` identifier.
|
||||||
|
|
||||||
|
To show full pages instead of just the page title and description in a
|
||||||
|
list page, set the list page parameter `paigeshowfullpages` to true.
|
||||||
|
|
||||||
The page date is the publish date, if any; otherwise, it's the creation
|
The page date is the publish date, if any; otherwise, it's the creation
|
||||||
date. To change the date format displayed, set the site parameter
|
date. To change the date format displayed, set the site parameter
|
||||||
`paigedateformat` to a Hugo date format.
|
`paigedateformat` to a Hugo date format.
|
||||||
|
@@ -1,5 +1,17 @@
|
|||||||
{{ if .Pages }}
|
{{ if .Pages }}
|
||||||
|
{{ if .Params.paigeshowfullpages }}
|
||||||
|
{{ $p := .Paginate .Pages }}
|
||||||
|
{{ range $p.Pages }}
|
||||||
|
{{ partial "paige-main.html" . }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if or $p.HasPrev $p.HasNext }}
|
||||||
<section>
|
<section>
|
||||||
|
<div class="d-flex justify-content-center">
|
||||||
|
{{ partial "paige-pagination.html" . }}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{{ end }}
|
||||||
|
{{ else }}
|
||||||
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
|
{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }}
|
||||||
{{ range $p.PageGroups }}
|
{{ range $p.PageGroups }}
|
||||||
<h5 class="text-center">{{ .Key }}</h5>
|
<h5 class="text-center">{{ .Key }}</h5>
|
||||||
@@ -14,9 +26,11 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if or $p.HasPrev $p.HasNext }}
|
{{ if or $p.HasPrev $p.HasNext }}
|
||||||
|
<section>
|
||||||
<div class="d-flex justify-content-center">
|
<div class="d-flex justify-content-center">
|
||||||
{{ partial "paige-pagination.html" . }}
|
{{ partial "paige-pagination.html" . }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
{{ $title = .Site.Title }}
|
{{ $title = .Site.Title }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $title }}
|
{{ if and $title (not .Params.paigeshowfullpages) }}
|
||||||
<h1 class="{{ $class }} fw-bold text-center">
|
<h1 class="{{ $class }} fw-bold text-center">
|
||||||
{{ with .Params.link }}
|
{{ with .Params.link }}
|
||||||
<a href="{{ . }}">{{ $title | markdownify }}</a>
|
<a href="{{ . }}">{{ $title | markdownify }}</a>
|
||||||
|
Reference in New Issue
Block a user