diff --git a/exampleSite/layouts/partials/toc-content.html b/exampleSite/layouts/partials/toc-content.html new file mode 100644 index 0000000000..c8e8aedaa7 --- /dev/null +++ b/exampleSite/layouts/partials/toc-content.html @@ -0,0 +1,4 @@ +{{- partial "shortcodes/piratify.html" (dict + "page" . + "pagefield" "TableOfContents" +) }} \ No newline at end of file diff --git a/exampleSite/layouts/partials/toc.html b/exampleSite/layouts/partials/toc.html deleted file mode 100644 index 98ed13321f..0000000000 --- a/exampleSite/layouts/partials/toc.html +++ /dev/null @@ -1,51 +0,0 @@ -{{- if eq .Kind "taxonomy" }} - -{{- else if eq .Kind "term" }} - -{{- else }} - {{- partial "shortcodes/piratify.html" (dict - "page" . - "pagefield" "TableOfContents" - ) }} -{{- end }} \ No newline at end of file diff --git a/layouts/partials/toc-content.html b/layouts/partials/toc-content.html new file mode 100644 index 0000000000..1ce61ba7d0 --- /dev/null +++ b/layouts/partials/toc-content.html @@ -0,0 +1 @@ +{{- .TableOfContents }} \ No newline at end of file diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 9b6ec5311b..a9cb73d13e 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -44,5 +44,5 @@ {{- else }} - {{- .TableOfContents }} + {{- partial "toc-content.html" . }} {{- end }} \ No newline at end of file