From 136691fb7bca4221bd70ac06a0eef7bf5c9b8b31 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 25 Feb 2023 14:10:21 -0800 Subject: [PATCH] Remove paige.table_of_contents.{class,hide} --- README.md | 2 -- layouts/partials/paige/toc.html | 16 ++++------------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 69a4995f..4525bdc8 100644 --- a/README.md +++ b/README.md @@ -274,8 +274,6 @@ paige: hide_page: false style: "" table_of_contents: - class: "border mb-3 pe-3 ps-3 pt-3 rounded" - hide: false max_width: "" ``` diff --git a/layouts/partials/paige/toc.html b/layouts/partials/paige/toc.html index 1c012574..06152a9f 100644 --- a/layouts/partials/paige/toc.html +++ b/layouts/partials/paige/toc.html @@ -8,18 +8,10 @@ {{ $listshowcontent = $params.listshowcontent }} {{ end }} -{{ $class := $page.Param "paige.table_of_contents.class" | default "border mb-3 pe-3 ps-3 pt-3 rounded" }} - -{{ if and $page.Content ($page.Param "paige.table_of_contents.hide" | not) (not $listshowcontent) (ne $page.TableOfContents ``) }} +{{ if and $page.Content (not $listshowcontent) (ne $page.TableOfContents ``) }}
- {{ with $class }} -
- {{ end }} - - {{ $page.TableOfContents }} - - {{ if $class }} -
- {{ end }} +
+ {{ $page.TableOfContents }} +
{{ end }}