Skip to content

Commit

Permalink
Fix display the banner link when no title
Browse files Browse the repository at this point in the history
Fix #147 

This will show the link if it is present but does not have a title.
  • Loading branch information
andybroomfield committed Jul 7, 2021
1 parent 3e40ca8 commit 5c46105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/localgov-alert-banner.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

{{ attach_library('localgov_alert_banner/alert_banner') }}

{% set has_link = content.link.0 is not empty %}
{% set has_link = content.link|render is not empty %}
{% set type_of_alert = type_of_alert|split('--')[1]|clean_class %}
{% set classes = [
'js-localgov-alert-banner',
Expand Down

0 comments on commit 5c46105

Please sign in to comment.