From 98e1261c10a1ca8326dfa7f9441f131774ba6524 Mon Sep 17 00:00:00 2001 From: Olivia Simonet <91660674+Olivia206@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:29:45 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20v=C3=A9rification=20dans=20le?= =?UTF-8?q?=20partial=20GetBlockClass=20(#559)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/GetBlockClass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/GetBlockClass b/layouts/partials/GetBlockClass index 56022686..467f6ff8 100644 --- a/layouts/partials/GetBlockClass +++ b/layouts/partials/GetBlockClass @@ -10,6 +10,8 @@ {{- $class = printf "%s block-%s--%s" $class .template .data.layout -}} {{- end -}} -{{- $class = printf "%s %s" $class .html_class -}} +{{- if .html_class -}} + {{- $class = printf "%s %s" $class .html_class -}} +{{ end }} {{- return $class -}} \ No newline at end of file -- GitLab