mirror of
https://git.qoto.org/fedipage/fedipage.git
synced 2024-11-15 19:47:57 +01:00
Made it so the TOC only shows on single article pages, not on the list
This commit is contained in:
parent
ee48548fd6
commit
8c10be0c5c
3 changed files with 2 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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" . }}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{{ .TableOfContents }}
|
||||
{{- if isset .Params "toc" }}{{ .TableOfContents }}{{ end}}
|
||||
|
|
Loading…
Reference in a new issue