Made it so the TOC only shows on single article pages, not on the list

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-16 23:05:38 -04:00
parent ee48548fd6
commit 8c10be0c5c
No known key found for this signature in database
GPG key ID: AD914585C9406B6A
3 changed files with 2 additions and 3 deletions

View file

@ -3,7 +3,6 @@
{{ range $index, $element := $paginator.Pages }}
<article class='post'>
{{ partial "post_header_list.html" . }}
{{ partial "toc.html" . }}
<section class='post-content'>
{{.Content }}
</section>

View file

@ -3,7 +3,7 @@
<article class='post'>
{{ partial "post_header_single.html" . }}
<section class='post-content'>
{{ if isset .Params "toc" }}{{ .TableOfContents }}{{ end}}
{{ partial "toc.html" . }}
{{ .Content }}
{{ if eq .Section "resource" }}{{ partial "backlinks.html" . }}{{ end }}
{{ partial "article_footer.html" . }}

View file

@ -1 +1 @@
{{ .TableOfContents }}
{{- if isset .Params "toc" }}{{ .TableOfContents }}{{ end}}