diff --git a/layouts/partials/paige/page-header.html b/layouts/partials/paige/page-header.html index e451bb64..18ae6008 100644 --- a/layouts/partials/paige/page-header.html +++ b/layouts/partials/paige/page-header.html @@ -2,4 +2,11 @@ {{ partial "paige/page-metadata.html" $page }} {{ partial "paige/alert.html" $page }} -{{ partial "paige/toc.html" $page }} + +{{ if and $page.Content (ne $page.TableOfContents ``) }} +
+
+ {{ $page.TableOfContents }} +
+
+{{ end }} diff --git a/layouts/partials/paige/toc.html b/layouts/partials/paige/toc.html deleted file mode 100644 index 49a882e3..00000000 --- a/layouts/partials/paige/toc.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ $page := . }} - -{{ if and $page.Content (ne $page.TableOfContents ``) }} -
-
- {{ $page.TableOfContents }} -
-
-{{ end }}