From e011603dfc0e993ff77a3ee43560b93cebdaed2d Mon Sep 17 00:00:00 2001 From: Henk Verlinde Date: Fri, 28 Jan 2022 08:48:57 +0100 Subject: [PATCH] feat: add full width as an option --- config/_default/params.toml | 1 + layouts/_default/baseof.html | 2 +- layouts/docs/single.html | 2 +- layouts/partials/footer/footer.html | 2 +- layouts/partials/header/header.html | 6 +++--- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index d7068be..6f2dc50 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -86,6 +86,7 @@ lastMod = false kaTex = false multilingualMode = false docsVersioning = false + fullWidth = true [menu] [menu.section] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 887373d..b8b4273 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -14,7 +14,7 @@ {{ end -}} {{ partial "header/header.html" . }} -
+
{{ block "main" . }}{{ end }}
diff --git a/layouts/docs/single.html b/layouts/docs/single.html index 55fd0e1..1746d0a 100644 --- a/layouts/docs/single.html +++ b/layouts/docs/single.html @@ -11,7 +11,7 @@ {{ end -}} {{ if .Params.toc -}} -
+
{{ else -}}
{{ end -}} diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index bd26030..ceb5fae 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,5 +1,5 @@