From 01904066c9edfc05659bd40d00a812d004a99252 Mon Sep 17 00:00:00 2001 From: Alexis BENOIT <alex@noesya.coop> Date: Fri, 20 Dec 2024 14:47:24 +0100 Subject: [PATCH] Option pour forcer la pleine largeur des pages (#837) --- hugo.yaml | 2 ++ layouts/partials/GetBodyclass | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hugo.yaml b/hugo.yaml index 24738195..559738c6 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -51,6 +51,8 @@ params: display: true breadcrumb: position: hero-start # hero-start | hero-end | after-hero | none + design: + force_full_width: false summary: position: hero # hero | content search: diff --git a/layouts/partials/GetBodyclass b/layouts/partials/GetBodyclass index 451c982d..293972b3 100644 --- a/layouts/partials/GetBodyclass +++ b/layouts/partials/GetBodyclass @@ -2,7 +2,7 @@ {{ $bodyclass = printf "%s__%s %s" .Type .Kind $bodyclass }} -{{ if .Params.design.full_width }} +{{ if or .Params.design.full_width site.Params.design.force_full_width }} {{ $bodyclass = printf "%s full-width" $bodyclass }} {{ end }} -- GitLab