From 26acc54213a2e845e6e786eca1e9ef1dcd5d9103 Mon Sep 17 00:00:00 2001 From: alexisben <alexiben7@gmail.com> Date: Fri, 22 Jul 2022 16:57:10 +0200 Subject: [PATCH] add full page class --- assets/sass/_theme/blocks/chapter.sass | 3 --- layouts/partials/GetBodyclass | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/assets/sass/_theme/blocks/chapter.sass b/assets/sass/_theme/blocks/chapter.sass index 99e3d1c1..cbd20961 100644 --- a/assets/sass/_theme/blocks/chapter.sass +++ b/assets/sass/_theme/blocks/chapter.sass @@ -18,11 +18,8 @@ .block-content > * width: col(8) - // @include make-col-ready() - // @include make-col(8) &--with-image .block-content align-items: center > * width: col(6) - // @include make-col(6) diff --git a/layouts/partials/GetBodyclass b/layouts/partials/GetBodyclass index a0c27749..efbd5c5c 100644 --- a/layouts/partials/GetBodyclass +++ b/layouts/partials/GetBodyclass @@ -4,4 +4,8 @@ {{- $bodyclass = printf "page-%s" $bodyclass -}} {{- end -}} +{{- if .Params.full_width -}} + {{- $bodyclass = printf "page-full %s" $bodyclass -}} +{{- end -}} + {{- return $bodyclass -}} \ No newline at end of file -- GitLab