diff --git a/config.yaml b/config.yaml index fc15d7d82dc1a1b9bbed213638a9d4eeaaae13a0..a7f931539198aaac5cf4ad7af93f8b8d2bc55289 100644 --- a/config.yaml +++ b/config.yaml @@ -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 diff --git a/layouts/index.html b/layouts/index.html index 28a6e97e829c852a5cb7b34dea8271900b884dfe..af420fdc051101f8b24337d8527265ffce1aba17 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -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