From fe14830f57c5af6fd0949df426513b749ce6c00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Wed, 17 Oct 2018 17:49:48 -0400 Subject: [PATCH] Give wrapping section and div for highlight region blocks --- .../block/block--highlighted.html.twig | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 agaric/templates/block/block--highlighted.html.twig diff --git a/agaric/templates/block/block--highlighted.html.twig b/agaric/templates/block/block--highlighted.html.twig new file mode 100644 index 0000000..c4010f9 --- /dev/null +++ b/agaric/templates/block/block--highlighted.html.twig @@ -0,0 +1,20 @@ +{# See "@stable/block/block.html.twig" #} +{% + set classes = [ + 'hero', + 'is-light', + ] +%} +{% set attributes = attributes.addClass(classes).addAttribute('data-headerbg', 'light') %} + +
+ {{ title_prefix }} + {% if label %} + {{ label }} + {% endif %} + {{ title_suffix }} + {% block content %} + {{ content }} + {% endblock %} +
+