Tried to enable optional TOC
This commit is contained in:
16
hugo_blag/layouts/_default/single.html
Normal file
16
hugo_blag/layouts/_default/single.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{- define "main" -}}
|
||||
{{- partial "article-header.html" . -}}
|
||||
{{- $justify := false -}}
|
||||
{{- if eq .Params.justify true -}} {{- $justify = true -}} {{- end -}}
|
||||
<article class="article markdown-body" {{- if $justify -}}style="text-align: justify;" {{- end -}}>
|
||||
{{ if .Params.toc }}
|
||||
{{ .TableOfContents }}
|
||||
{{ end }}
|
||||
{{- .Content -}}
|
||||
</article>
|
||||
{{- partial "article-labels.html" . -}}
|
||||
{{- partial "article-license.html" . -}}
|
||||
{{- partial "article-author.html" . -}}
|
||||
{{- partial "article-bottom-navigation.html" . -}}
|
||||
{{- partial "article-comments.html" . -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user