Skip to content

Commit

Permalink
Fix the template - empty div case
Browse files Browse the repository at this point in the history
  • Loading branch information
albinazs committed Jan 31, 2025
1 parent fb274dd commit e5e41f8
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
{% endfor %}
</div>
</div>
<div class="four-photo-collage__text">
{% if value.caption %}
<div class="rich-text heading heading--three heading--light mb-8">
{{ value.caption|richtext }}
</div>
{% endif %}
{% if value.description %}
<div class="rich-text four-photo-collage__description">{{ value.description|richtext }}</div>
{% endif %}
</div>
{% if value.caption or value.description %}
<div class="four-photo-collage__text">
{% if value.caption %}
<div class="rich-text heading heading--three heading--light mb-8">
{{ value.caption|richtext }}
</div>
{% endif %}
{% if value.description %}
<div class="rich-text four-photo-collage__description">{{ value.description|richtext }}</div>
{% endif %}
</div>
{% endif %}
</div>

0 comments on commit e5e41f8

Please sign in to comment.