Skip to content

Commit

Permalink
Support modular text full-width if no image #70
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Nov 12, 2018
1 parent 531feb5 commit 79080d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions templates/modular/text.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<section class="section modular-text {{ page.header.class}} bg-gray">
<section class="container {{ grid_size }}">
<div class="columns {{ page.header.image_align|default('align-right') }}">
{% if image %}
<div class="column col-6 col-md-12">
{{ content|raw }}
</div>
Expand All @@ -12,6 +13,11 @@
{{ image.html|raw }}
{% endif %}
</div>
{% else %}
<div class="column col-12">
{{ content|raw }}
</div>
{% endif %}
</div>
</section>
</section>

0 comments on commit 79080d8

Please sign in to comment.