From 4b72cf92eafcd08ff55c95fca6b8d7c9fba666f0 Mon Sep 17 00:00:00 2001
From: alexisben <alex@noesya.coop>
Date: Wed, 25 Jan 2023 10:11:13 +0100
Subject: [PATCH] fix block page bodyclass

---
 layouts/partials/blocks/templates/pages.html | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/layouts/partials/blocks/templates/pages.html b/layouts/partials/blocks/templates/pages.html
index 3492ede4..e749a50f 100644
--- a/layouts/partials/blocks/templates/pages.html
+++ b/layouts/partials/blocks/templates/pages.html
@@ -37,8 +37,7 @@
       {{ $title = .Title }}
     {{ end }}
     {{ if .Params.bodyclass }}
-      {{- $page_class = partial "GetBodyclass" . }}
-      {{- $page_class = printf "block-%s" $page_class }}
+      {{- $page_class = printf "block-page-%s" .Params.bodyclass }}
     {{ end }}
     {{ if site.Params.pages.index.truncate_description }}
       {{- $main_description = partial "GetTruncateContent" ( dict 
-- 
GitLab