diff --git a/source/_patterns/03-layouts/layout/_layout.twig b/source/_patterns/03-layouts/layout/_layout.twig index 88e390daab609947022a328381e7d6d14a110fad..23dec69c0db9e68c73a3a4e4792f23c94f3853d7 100644 --- a/source/_patterns/03-layouts/layout/_layout.twig +++ b/source/_patterns/03-layouts/layout/_layout.twig @@ -18,54 +18,54 @@ {% for i in 1..num_of_blocks %} - {% set section_name = section_names[loop.index] %} + {% set section_name = section_names[loop.index] %} - {% if inverted_l_left or inverted_l_right %} - {% if loop.index == 1 %} - <div class="uw-inverted-l--left-side"> - {% endif %} + {% if inverted_l_left or inverted_l_right %} + {% if loop.index == 1 %} + <div class="uw-inverted-l--left-side"> + {% endif %} - {% if inverted_l_left and loop.index == 2 %} - <div class="uw-inverted-l--right-side"> + {% if inverted_l_left and loop.index == 2 %} + <div class="uw-inverted-l--right-side"> {% endif %} {% if inverted_l_right and loop.index == 4 %} - <div class="uw-inverted-l--right-side"> - {% endif %} + <div class="uw-inverted-l--right-side"> + {% endif %} - {% endif %} + {% endif %} - <div - {% if pattern_lab %} - {% set region_classes = 'layout__region ' ~ 'layout__region--' ~ section_name %} - class="{{ region_classes }}" - {% else %} - {{ region_attributes[section_name].addClass('layout__region', 'layout__region--' ~ section_name) }} - {% endif %} - > + <div + {% if pattern_lab %} + {% set region_classes = 'layout__region ' ~ 'layout__region--' ~ section_name %} + class="{{ region_classes }}" + {% else %} + {{ region_attributes[section_name].addClass('layout__region', 'layout__region--' ~ section_name) }} + {% endif %} + > - {% if pattern_lab %} - {{ section_name }} column - {% else %} - {{ content[section_name] }} - {% endif %} - </div> + {% if pattern_lab %} + {{ section_name }} column + {% else %} + {{ content[section_name] }} + {% endif %} + </div> - {% if inverted_l_left or inverted_l_right %} - {% if inverted_l_left %} + {% if inverted_l_left or inverted_l_right %} + {% if inverted_l_left %} {% if loop.index == 1 or loop.index == 4 %} - </div> - {% endif %} + </div> + {% endif %} {% endif %} {% if inverted_l_right %} - {% if loop.index == 3 or loop.index == 4 %} - </div> - {% endif %} - {% endif %} + {% if loop.index == 3 or loop.index == 4 %} + </div> + {% endif %} + {% endif %} {% endif %} - {% endfor %} + {% endfor %} </section>