Skip to content

Commit

Permalink
Merge pull request #597 from CuBoulder/issue/596
Browse files Browse the repository at this point in the history
Fixes error on Newsletter pages
  • Loading branch information
patrickbrown-io authored Dec 19, 2023
2 parents 6f0da10 + 96d28ea commit c2f6930
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/content/node--newsletter.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@
'node--type-' ~ node.bundle|clean_class,
not node.isPublished() ? 'node--unpublished',
view_mode ? 'node--view-mode-' ~ view_mode|clean_class,
]% }
] %}

{# Dummy variable to ensure that all content tags are set for caching purposes #}
{% set content_render = content|render %}

<article{{ attributes.addClass(classes) }}>
<div{{ create_attribute({
'class': ['container', 'ucb-newsletter'],
'data-loggedin': logged_in ? 'true' : 'false' }) }}>
'class': ['container', 'ucb-newsletter'],
'data-loggedin': logged_in ? 'true' : 'false' }) }}>
{# Newsletter Title #}
<h1 class="ucb-newsletter-title {{isFrontPage}}" itemprop="name">{{ label }}</h1>
<h1{{ title_attributes.addClass('ucb-newsletter-title', is_front ? 'sr-only').setAttribute('itemprop', 'name') }}>
{{ label }}
</h1>
{# Newsletter Intro #}
{% if content.field_newsletter_intro_image|render %}
<div id="newsletter-intro-img">{{ content.field_newsletter_intro_image }}</div>
Expand Down

0 comments on commit c2f6930

Please sign in to comment.