From 5aff9823bdd8c79087755add43ce6e9c4faeb81f Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Wed, 8 Nov 2023 14:02:10 -0500 Subject: [PATCH] ISTWCMS-6635: adding heading level to block template --- templates/blocks/block.html.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/blocks/block.html.twig b/templates/blocks/block.html.twig index eb8af384..fd4fb296 100644 --- a/templates/blocks/block.html.twig +++ b/templates/blocks/block.html.twig @@ -44,7 +44,11 @@ {% endif %} {{ title_prefix }} {% if label %} - <h2{{ title_attributes }}>{{ label }}</h2> + {% if heading_level %} + <{{ heading_level }}{{ title_attributes }}>{{ label }}</{{ heading_level }}> + {% else %} + <h2{{ title_attributes }}>{{ label }}</h2> + {% endif %} {% endif %} {{ title_suffix }} {% block content %} -- GitLab