Skip to content

Commit 7b2f17a

Browse files
[PYT-634] conditional correction on CTA display
1 parent db42fd4 commit 7b2f17a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

_includes/latest_episodes.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ <h2 class="episode-header-text">Latest Episodes</h2>
2020
</li>
2121
<span class="info-divide"></span>
2222
</ul>
23-
{% if item.poster or item.video %}
24-
<ul class="episode-info">
25-
<li class="episode-poster"><a href="{{ item.poster }}">Poster</a></li>
23+
<ul class="episode-info">
24+
{% if item.poster %}
25+
<li class="episode-poster"><a href="{{ item.poster }}">Poster</a></li>
26+
{% endif %}
27+
{% if item.video %}
2628
<li class="episode-poster"><a href="{{ item.video }}">Watch</a></li>
29+
{% endif %}
2730
</ul>
28-
{% endif %}
2931
</div>
3032
</div>
3133
{% endif %}

0 commit comments

Comments
 (0)