From d9127436e2c258bf42bc56e745ed707976f4f4fe Mon Sep 17 00:00:00 2001 From: "David W. Dougherty" Date: Tue, 20 May 2025 06:57:50 -0700 Subject: [PATCH 1/2] DEV/OP: make is possible to hide in-page TOC with frontmatter --- layouts/develop/single.html | 4 +++- layouts/operate/list.html | 6 ++++-- layouts/operate/single.html | 6 ++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/layouts/develop/single.html b/layouts/develop/single.html index a2e7bc576..77511c978 100644 --- a/layouts/develop/single.html +++ b/layouts/develop/single.html @@ -36,7 +36,9 @@

{{ partial "feedback.html" . }} - {{ partial "docs-toc.html" . }} + {{ if not .Params.hideTOC }} + {{ partial "docs-toc.html" . }} + {{ end }} {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/operate/list.html b/layouts/operate/list.html index 264297d01..895155043 100644 --- a/layouts/operate/list.html +++ b/layouts/operate/list.html @@ -5,7 +5,7 @@ {{ define "main" }}
{{ partial "docs-nav.html" . }} -
+
{{ partial "breadcrumbs" . }}

@@ -92,7 +92,9 @@

{{ partial "feedback.html" . }}

- {{ partial "docs-toc.html" . }} + {{ if not .Params.hideTOC }} + {{ partial "docs-toc.html" . }} + {{ end }} {{ partial "scripts.html" . }}
{{ end }} diff --git a/layouts/operate/single.html b/layouts/operate/single.html index fbb167d2c..415c07537 100644 --- a/layouts/operate/single.html +++ b/layouts/operate/single.html @@ -5,7 +5,7 @@ {{ define "main" }}
{{ partial "docs-nav.html" . }} -
+
{{ partial "breadcrumbs" . }}

{{ .Title }}

@@ -82,7 +82,9 @@

{{ .Title }}

{{ partial "feedback.html" . }}
- {{ partial "docs-toc.html" . }} + {{ if not .Params.hideTOC }} + {{ partial "docs-toc.html" . }} + {{ end }} {{ partial "scripts.html" . }}
{{ end }} From f5c43c5e3992b443251c763513e24e26bc513a28 Mon Sep 17 00:00:00 2001 From: "David W. Dougherty" Date: Tue, 20 May 2025 07:04:40 -0700 Subject: [PATCH 2/2] integrate pages too --- layouts/integration/list.html | 2 +- layouts/integration/single.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/integration/list.html b/layouts/integration/list.html index 411eb1ef7..e4fd87081 100644 --- a/layouts/integration/list.html +++ b/layouts/integration/list.html @@ -5,7 +5,7 @@ {{ define "main" }}
{{ partial "docs-nav.html" . }} -
+
{{ partial "breadcrumbs" . }}

{{ .Title }}

diff --git a/layouts/integration/single.html b/layouts/integration/single.html index 41c035db8..5ff22140b 100644 --- a/layouts/integration/single.html +++ b/layouts/integration/single.html @@ -5,7 +5,7 @@ {{ define "main" }}
{{ partial "docs-nav.html" . }} -
+
{{ partial "breadcrumbs" . }}

{{ .Title }}