Skip to content
Snippets Groups Projects
Commit a046f865 authored by alexisben's avatar alexisben
Browse files

config to disable home toc

parent 5c5e72bf
No related branches found
No related tags found
No related merge requests found
......@@ -10,4 +10,7 @@ params:
truncate_description: 0 # Set to 0 to disable truncate
pages:
list:
truncate_description: 0 # Set to 0 to disable truncate
\ No newline at end of file
truncate_description: 0 # Set to 0 to disable truncate
home:
toc:
disabled: true
\ No newline at end of file
......@@ -2,12 +2,14 @@
{{ partial "home/hero.html" . }}
<div class="document-content">
{{ partial "toc/container.html"
(dict
"toc" "toc/default.html"
"context" .
)
}}
{{- if not $.Site.Params.home.toc.disabled -}}
{{ partial "toc/container.html"
(dict
"toc" "toc/default.html"
"context" .
)
}}
{{- end -}}
{{ partial "home/chapo.html" (dict
"block_wrapped" true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment