Remove full pages

This commit is contained in:
Will Faught
2023-03-19 18:18:38 -07:00
parent e24aa20c04
commit d20243aab7
8 changed files with 42 additions and 102 deletions

View File

@@ -1,14 +1,6 @@
{{ $params := . }}
{{ $fullpages := false }}
{{ $page := . }}
{{ if reflect.IsMap $params }}
{{ $fullpages = $params.fullpages }}
{{ $page = $params.page }}
{{ end }}
{{ if and $page.Content (not $fullpages) (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
{{ if and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) }}
<div id="paige-toc">
<div class="border mb-3 pe-3 ps-3 pt-3 rounded">
{{ $page.TableOfContents }}