Move paige.main.metadata.table_of_contents to main

master
Will Faught 2 years ago
parent a8143283ae
commit a276e05101

@ -319,8 +319,6 @@ paige:
hide: false # Don't include this page in search results; default is false hide: false # Don't include this page in search results; default is false
section: section:
class: "paige-metadata w-100" # Default is "paige-metadata w-100" class: "paige-metadata w-100" # Default is "paige-metadata w-100"
table_of_contents:
hide: false # Default is false
terms: terms:
hide: false # Default is false hide: false # Default is false
inner_class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none" inner_class: "badge text-bg-secondary text-decoration-none" # Default is "badge text-bg-secondary text-decoration-none"
@ -328,6 +326,8 @@ paige:
title: title:
class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center" class: "display-5 fw-bold text-center" # Default is "display-5 fw-bold text-center"
hide: false # Default is false hide: false # Default is false
table_of_contents:
hide: false # Default is false
rss: rss:
managing_editor: "Michael Bluth" # Default is "" managing_editor: "Michael Bluth" # Default is ""
web_master: "Michael Bluth" # Default is "" web_master: "Michael Bluth" # Default is ""

@ -1,6 +1,6 @@
{{ $page := . }} {{ $page := . }}
{{ if and $page.Content ($page.Param "paige.main.metadata.table_of_contents.hide" | not) (not (eq ($page.Scratch.Get "paige_list_show_content") true)) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }} {{ if and $page.Content ($page.Param "paige.main.table_of_contents.hide" | not) (not (eq ($page.Scratch.Get "paige_list_show_content") true)) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
<section class="paige-toc"> <section class="paige-toc">
<div class="border mb-3 pe-3 ps-3 pt-3 rounded"> <div class="border mb-3 pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }} {{ $page.TableOfContents }}

Loading…
Cancel
Save