-
-
Save bangpound/a9b752f090e792f88c9231046827a0a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig b/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig | |
index 90b7f11..a89a530 100644 | |
--- a/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig | |
+++ b/docroot/profiles/discoverdesign/themes/newel/templates/content/node--challenge--card.html.twig | |
@@ -74,7 +74,7 @@ | |
{% | |
set classes = [ | |
'summary-card', | |
- content.field_competition.isEmpty() ? '': 'flagged', | |
+ node.field_competition.isEmpty() ? '': 'flagged', | |
] | |
%} | |
@@ -83,7 +83,7 @@ | |
<a class="card__link" href="{{ url }}" rel="bookmark"> | |
{{ content.field_image }} | |
<div{{ content_attributes.addClass('card__copy') }}> | |
- {% if not content.field_competition.isEmpty() %} | |
+ {% if not node.field_competition.isEmpty() %} | |
<span class="flag">{{ content.field_competition }}</span> | |
{% endif %} | |
<h3>{{ label }}</h3> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment