Replace .Params, $page.Params with $page.Param

This commit is contained in:
Will Faught
2023-01-29 15:30:48 -08:00
parent 7e8eef9adc
commit 7a8c3693b5
5 changed files with 5 additions and 5 deletions

View File

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