From 0dd23dc85ef01414ac34573c41670c2a9fbdc510 Mon Sep 17 00:00:00 2001 From: Christophe Vandeplas Date: Sun, 9 Jan 2022 16:03:00 +0100 Subject: [PATCH] chg: [layout] added TOC + fix layout issue of index --- content/compliance/GDPR.md | 1 + content/compliance/ISO-IEC-27010.md | 1 + content/compliance/NISD.md | 1 + layouts/{page => compliance}/list.html | 18 ++++++- layouts/page/single.html | 70 ++++++++++++++++++++++++++ 5 files changed, 90 insertions(+), 1 deletion(-) rename layouts/{page => compliance}/list.html (57%) create mode 100644 layouts/page/single.html diff --git a/content/compliance/GDPR.md b/content/compliance/GDPR.md index db4bcf8..b425623 100755 --- a/content/compliance/GDPR.md +++ b/content/compliance/GDPR.md @@ -1,6 +1,7 @@ --- type: page title: Information sharing and cooperation enabled by GDPR +toc: true --- # Information sharing and cooperation enabled by GDPR diff --git a/content/compliance/ISO-IEC-27010.md b/content/compliance/ISO-IEC-27010.md index 63e78b1..2a91760 100644 --- a/content/compliance/ISO-IEC-27010.md +++ b/content/compliance/ISO-IEC-27010.md @@ -1,6 +1,7 @@ --- title: MISP as supporting platform for sharing information, following ISO/IEC 27010:2015 type: page +toc: true --- diff --git a/content/compliance/NISD.md b/content/compliance/NISD.md index 8798eb5..a02a69c 100644 --- a/content/compliance/NISD.md +++ b/content/compliance/NISD.md @@ -1,6 +1,7 @@ --- title: How MISP enables stakeholders identified by the NISD to perform key activities type: page +toc: true --- # How MISP enables stakeholders identified by the NISD to perform key activities diff --git a/layouts/page/list.html b/layouts/compliance/list.html similarity index 57% rename from layouts/page/list.html rename to layouts/compliance/list.html index 5e18140..40a107f 100644 --- a/layouts/page/list.html +++ b/layouts/compliance/list.html @@ -24,14 +24,30 @@
- + {{ if isset .Params "toc" }} +
+ {{ else }}
+ {{ end }}
{{ .Content }}
+ {{ if isset .Params "toc" }} +
+ +
+ {{ end }} +
diff --git a/layouts/page/single.html b/layouts/page/single.html new file mode 100644 index 0000000..40a107f --- /dev/null +++ b/layouts/page/single.html @@ -0,0 +1,70 @@ + + + + + {{ partial "headers.html" . }} + {{ partial "custom_headers.html" . }} + + + + +
+ + {{ partial "nav.html" . }} + + {{ partial "breadcrumbs.html" . }} + +
+ {{ if isset .Params "id" }} + + {{ partial .Params.id . }} + + {{ else }} + +
+ +
+ {{ if isset .Params "toc" }} +
+ {{ else }} +
+ {{ end }} + +
+ {{ .Content }} +
+ +
+ {{ if isset .Params "toc" }} +
+ +
+ {{ end }} + + +
+ + +
+ + + {{ end }} +
+ + + {{ partial "footer.html" . }} + +
+ + + {{ partial "scripts.html" . }} + + +