diff --git a/content/wiki/forger-des-blocs/duniter1.9doc/_index.md b/content/wiki/forger-des-blocs/duniter1.9doc/_index.md index 23656b35de0b97084d31dc899ba85bceebf1bb43..2cbc0566ef6e9c78feb456f7f82c229b0e79cb6c 100644 --- a/content/wiki/forger-des-blocs/duniter1.9doc/_index.md +++ b/content/wiki/forger-des-blocs/duniter1.9doc/_index.md @@ -3,4 +3,5 @@ title = "Documentation pour Duniter 1.9" [extra] EXTERNAL_CONTENT = "https://git.duniter.org/nodes/typescript/duniter/-/raw/dev/doc/use/index.md" +auto_toc = true +++ \ No newline at end of file diff --git a/content/wiki/forger-des-blocs/duniter1.9doc/advanced-commands.md b/content/wiki/forger-des-blocs/duniter1.9doc/advanced-commands.md index c2b10257c18ce030d5722fc0e4c799f035fe088a..980aeb9a408fe0ab0ff3f7fc36817904af35d21c 100644 --- a/content/wiki/forger-des-blocs/duniter1.9doc/advanced-commands.md +++ b/content/wiki/forger-des-blocs/duniter1.9doc/advanced-commands.md @@ -3,4 +3,5 @@ title = "Advanced commands" [extra] EXTERNAL_CONTENT = "https://git.duniter.org/nodes/typescript/duniter/-/raw/dev/doc/use/advanced-commands.md" +auto_toc = true +++ \ No newline at end of file diff --git a/content/wiki/forger-des-blocs/duniter1.9doc/configure.md b/content/wiki/forger-des-blocs/duniter1.9doc/configure.md index d7d2dcd4cecd50412e97c8d8bfc712a7f94401bc..fed123a5f988f46545ec90df06d80b2e63207d9e 100644 --- a/content/wiki/forger-des-blocs/duniter1.9doc/configure.md +++ b/content/wiki/forger-des-blocs/duniter1.9doc/configure.md @@ -3,4 +3,5 @@ title = "Configure" [extra] EXTERNAL_CONTENT = "https://git.duniter.org/nodes/typescript/duniter/-/raw/dev/doc/use/configure.md" +auto_toc = true +++ \ No newline at end of file diff --git a/content/wiki/forger-des-blocs/duniter1.9doc/docker.md b/content/wiki/forger-des-blocs/duniter1.9doc/docker.md index 45a88326f335d1ea2373ce9c2ebf889d67b98297..12ab4a1d88cf03a9b9a9a4b1b6ca3e29b57fba5e 100644 --- a/content/wiki/forger-des-blocs/duniter1.9doc/docker.md +++ b/content/wiki/forger-des-blocs/duniter1.9doc/docker.md @@ -3,4 +3,5 @@ title = "Docker" [extra] EXTERNAL_CONTENT = "https://git.duniter.org/nodes/typescript/duniter/-/raw/dev/doc/use/docker.md" +auto_toc = true +++ \ No newline at end of file diff --git a/content/wiki/forger-des-blocs/duniter1.9doc/install.md b/content/wiki/forger-des-blocs/duniter1.9doc/install.md index cf5d5a4f651ebff3eefaa4c96175a424c15593a6..19b7980f94ebf0b3d30e45ede8a5f9727ade3b37 100644 --- a/content/wiki/forger-des-blocs/duniter1.9doc/install.md +++ b/content/wiki/forger-des-blocs/duniter1.9doc/install.md @@ -3,4 +3,5 @@ title = "Install" [extra] EXTERNAL_CONTENT = "https://git.duniter.org/nodes/typescript/duniter/-/raw/dev/doc/use/install.md" +auto_toc = true +++ \ No newline at end of file diff --git a/content/wiki/forger-des-blocs/duniter1.9doc/manual_compilation.md b/content/wiki/forger-des-blocs/duniter1.9doc/manual_compilation.md index 9a5010aaae5e55c7d76a3f96a8218fec1474fe5c..296e1859fe2cec58288000eba4239d7415c0fbad 100644 --- a/content/wiki/forger-des-blocs/duniter1.9doc/manual_compilation.md +++ b/content/wiki/forger-des-blocs/duniter1.9doc/manual_compilation.md @@ -3,4 +3,5 @@ title = "Manual compilation" [extra] EXTERNAL_CONTENT = "https://git.duniter.org/nodes/typescript/duniter/-/raw/dev/doc/use/manual_compilation.md" +auto_toc = true +++ \ No newline at end of file diff --git a/content/wiki/forger-des-blocs/duniter1.9doc/ws2p_preferred_privileged.md b/content/wiki/forger-des-blocs/duniter1.9doc/ws2p_preferred_privileged.md index ceb78381ff71e0ed18ad25742ef8462f4525d861..62b34674bdaadf808db84e26c22e7b0345cdf614 100644 --- a/content/wiki/forger-des-blocs/duniter1.9doc/ws2p_preferred_privileged.md +++ b/content/wiki/forger-des-blocs/duniter1.9doc/ws2p_preferred_privileged.md @@ -3,4 +3,5 @@ title = "WS2P preferred and privileged nodes" [extra] EXTERNAL_CONTENT = "https://git.duniter.org/nodes/typescript/duniter/-/raw/dev/doc/use/ws2p_preferred_privileged.md" +auto_toc = true +++ \ No newline at end of file diff --git a/templates/page.html b/templates/page.html index f68e867567a5caa5f3d7ae292be0ca5ba9ffb507..2637f01cbc57cb20da537bda249fe0b8fb3b39fe 100644 --- a/templates/page.html +++ b/templates/page.html @@ -11,6 +11,8 @@ <div class="breadcrumb">{{ macros::breadcrumb(path=page.components | safe) }}<a class="w3-text-light-blue" href="https://git.42l.fr/HugoTrentesaux/zola-duniter/src/branch/master/content/{{ page.components | join(sep='/') }}.md">.md</a></div> {{ macros::taxonomies(taxonomies=page.taxonomies) }} + + {% if page.extra.auto_toc %}{{ macros::toc(toc=page.toc, level=1, depth=page.extra.toc_depth | default(value=6)) }}{% endif %} {{ macros::replace_toc(resource=page) | safe }} </main> diff --git a/templates/section.html b/templates/section.html index 59cfa2fd5d853b5aebd14d88b0773a81fd3a4480..7304cf9ce835b782e2126207ea3a0f30a26569d4 100644 --- a/templates/section.html +++ b/templates/section.html @@ -14,6 +14,8 @@ {#{ macros::taxonomies(taxonomies=section.taxonomies) }#} + {% if section.extra.auto_toc %}{{ macros::toc(toc=section.toc, level=1, depth=section.extra.toc_depth | default(value=6)) }}{% endif %} + {{ macros::replace_toc(resource=section) | safe }} </main> {% endblock content %} \ No newline at end of file