Skip to content

Commit 904cce4

Browse files
committed
Update logic to hide empty cta span
1 parent 68a9744 commit 904cce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/site/_includes/banner.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<a href="{{ announcementbar.url }}" class="block p-2 md:py-2 text-center text-white font-bold text-xs md:text-sm bg-gradient-jams bg-gradient-pink-orange group">
2-
{{ announcementbar.text }} <span class="underline group-hover:no-underline">{{ announcementbar.cta }}</span>
2+
{{ announcementbar.text }} {% if announcementbar.cta %}<span class="underline group-hover:no-underline">{{ announcementbar.cta }}</span>{% endif %}
33
</a>

0 commit comments

Comments
 (0)