setup
This commit is contained in:
14
themes/hugo-theme-monochrome/layouts/_default/single.html
Normal file
14
themes/hugo-theme-monochrome/layouts/_default/single.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{{- define "content" -}}
|
||||
|
||||
{{ if and (ne .TableOfContents "<nav id=\"TableOfContents\"></nav>") (.Scratch.Get "params").enable_toc }}
|
||||
{{ $enable_collapsible_toc := (.Scratch.Get "params").enable_collapsible_toc }}
|
||||
{{ partial "collapsible-menu.html" (dict "type" "toc" "context" . "enable" $enable_collapsible_toc) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if .Content }}
|
||||
<div class="content-margin">
|
||||
{{- partial "content.html" (dict "ctx" . "content" .Content) -}}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user