diff --git a/README.md b/README.md index 65e2e5af..69a4995f 100644 --- a/README.md +++ b/README.md @@ -258,9 +258,8 @@ paige: source: "published" # Displayed date in single pages; must be "published" or "modified" git: commit_url_prefix: "" # Example is "https://github.com/willfaught/paige/commit/" - list: - content: - show: false + section_pages: + full_pages: false # Display full pages in the list of pages. math: false # Enable math typesetting menu: breakpoint: "sm" # Bootstrap breakpoint at which to display all menu items diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 66bcc6cb..db44818f 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ $page := . }} -{{ if $page.Param "paige.list.content.show" | not }} +{{ if $page.Param "paige.section_pages.full_pages" | not }} {{ partial "paige/article.html" $page }} {{ end }} diff --git a/layouts/partials/paige/links.html b/layouts/partials/paige/links.html index a9eed498..f0c657ef 100644 --- a/layouts/partials/paige/links.html +++ b/layouts/partials/paige/links.html @@ -21,7 +21,7 @@ {{ partial "paige/link.html" (dict "href" "paige/bootstrap/bootstrap.css") }} {{ end }} -{{ if or ($page.Param "paige.math") (and ($page.Param "paige.list.content.show") (where $page.Pages "Params.paige.math" "eq" true)) }} +{{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }} {{ partial "paige/link.html" (dict "href" "paige/katex/katex.css") }} {{ end }} diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index de95d327..61d6e088 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -1,7 +1,7 @@ {{ $page := . }} {{ if $page.Pages }} - {{ if $page.Param "paige.list.content.show" }} + {{ if $page.Param "paige.section_pages.full_pages" }} {{ $p := $page.Paginate $page.Pages }}
{{ range $p.Pages }} diff --git a/layouts/partials/paige/scripts.html b/layouts/partials/paige/scripts.html index 221ee494..c529ebd3 100644 --- a/layouts/partials/paige/scripts.html +++ b/layouts/partials/paige/scripts.html @@ -43,7 +43,7 @@ addEventListener("resize", paigeResize); {{ partial "paige/script.html" (dict "src" "paige/bootstrap/bootstrap.bundle.js") }} -{{ if or ($page.Param "paige.math") (and ($page.Param "paige.list.content.show") (where $page.Pages "Params.paige.math" "eq" true)) }} +{{ if or ($page.Param "paige.math") (and ($page.Param "paige.section_pages.full_pages") (where $page.Pages "Params.paige.math" "eq" true)) }} {{ partial "paige/script.html" (dict "src" "paige/katex/katex.js") }} {{ partial "paige/script.html" (dict "onload" "renderMathInElement(document.body);" "src" "paige/katex/auto-render.js") }} {{ end }}