From 07e1b856b02abcb544afefc425e464a2fa9e9d03 Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 6 Mar 2022 10:58:02 +0100 Subject: [PATCH 1/3] feat: same container width on all pages (#534) --- layouts/_default/baseof.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 98cc815..081277b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -6,7 +6,14 @@ {{- partial "head/colorScheme" . -}} - {{- $hasWidget := default (gt (len .Site.Params.widgets.homepage) 0) (.Scratch.Get "hasWidget") -}} + + {{/* The container is wider when there's any activated widget */}} + {{- $hasWidget := false -}} + {{- range .Site.Params.widgets -}} + {{- if gt (len .) 0 -}} + {{- $hasWidget = true -}} + {{- end -}} + {{- end -}}
{{- block "left-sidebar" . -}} {{ partial "sidebar/left.html" . }} From de9756291bf82b67ffc2e53ba01c02adc8db120a Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 6 Mar 2022 10:58:31 +0100 Subject: [PATCH 2/3] release: 3.10.0 --- layouts/partials/footer/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/footer/footer.html b/layouts/partials/footer/footer.html index 86222eb..b9ab61a 100644 --- a/layouts/partials/footer/footer.html +++ b/layouts/partials/footer/footer.html @@ -1,4 +1,4 @@ -{{- $ThemeVersion := "3.9.0" -}} +{{- $ThemeVersion := "3.10.0" -}}