diff --git a/README.md b/README.md index 66300a30..7d423497 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,8 @@ stretch: "my-stretch.jpg" # A 4x3 or panorama image that is stretched fully hori Additional optional list page parameters: ```yaml -paige_show_full_pages: true # Show full pages, not just page titles and descriptions +paige: + show_full_pages: true # Show full pages, not just page titles and descriptions ``` Additional optional single page parameters: diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 00471b65..d3746c3e 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,5 +1,5 @@ {{ define "main" }} -{{ if not .Params.paige_show_full_pages }} +{{ if not .Params.paige.show_full_pages }} {{ partial "paige-article.html" . }} {{ end }} {{ partial "paige-pages.html" . }} diff --git a/layouts/partials/paige-link.html b/layouts/partials/paige-link.html index 665285fd..d2df581f 100644 --- a/layouts/partials/paige-link.html +++ b/layouts/partials/paige-link.html @@ -8,7 +8,7 @@ {{ else }} {{ end }} -{{ if or .Params.paige.math (and .Params.paige_show_full_pages (where .Pages "Params.paige.math" "eq" true)) }} +{{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }} {{ end }} {{ if .AlternativeOutputFormats }} diff --git a/layouts/partials/paige-pages.html b/layouts/partials/paige-pages.html index 7d2e5de7..e4a2e0f3 100644 --- a/layouts/partials/paige-pages.html +++ b/layouts/partials/paige-pages.html @@ -1,5 +1,5 @@ {{ if .Pages }} -{{ if .Params.paige_show_full_pages }} +{{ if .Params.paige.show_full_pages }} {{ $p := .Paginate .Pages }} {{ range $p.Pages }} {{ .Scratch.Set "paige_show_full_pages" true }} diff --git a/layouts/partials/paige-script.html b/layouts/partials/paige-script.html index b40bf3ed..d8a52b8b 100644 --- a/layouts/partials/paige-script.html +++ b/layouts/partials/paige-script.html @@ -3,7 +3,7 @@ {{ else }} {{ end }} -{{ if or .Params.paige.math (and .Params.paige_show_full_pages (where .Pages "Params.paige.math" "eq" true)) }} +{{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }} {{ end }}