Skip to content

Instantly share code, notes, and snippets.

@bangpound
Created August 29, 2016 16:19
Show Gist options
  • Save bangpound/a9b752f090e792f88c9231046827a0a1 to your computer and use it in GitHub Desktop.
Save bangpound/a9b752f090e792f88c9231046827a0a1 to your computer and use it in GitHub Desktop.
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