Skip to content

Commit 8d89665

Browse files
committed
fix(index): add if control for CTAs per code review
Signed-off-by: Laura Santamaria <[email protected]>
1 parent 70cc29b commit 8d89665

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

templates/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,17 @@ <h3 class="group-heading">{{ elem.heading }}</h3>
220220
<div class="group-copy"><p>{{ elem.copy }}</p>
221221
{% if elem.copy2 %}
222222
<p>{{ elem.copy2 }}</p>
223-
{% endif %}</div>
223+
{% endif %}
224+
</div>
225+
{% if elem.cta %}
224226
<p class="group-cta">
225227
<a class="group-cta-anchor"
226228
href="{{ elem.cta.href }}"
227229
title="{{ elem.cta.title }}">
228230
{{ elem.cta.text }}
229231
</a>
230232
</p>
233+
{% endif %}
231234
</div>
232235
</div>
233236
{% endif %}

0 commit comments

Comments
 (0)