Skip to content

Commit 9776aba

Browse files
authored
Merge pull request #465 from GSA/feature/DIGITAL-776-events-page-changes
commented out upcoming events and past events, added twig filter that…
2 parents 05b2426 + 3777f06 commit 9776aba

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

web/modules/custom/default_content_config/content/node/e60a3199-17d7-4c13-8b76-f0bbaef67bcd.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ default:
3939
uri: 'https://www.youtube.com/@DigitalGov'
4040
title: 'Video library'
4141
options: { }
42-
-
43-
uri: 'internal:/events/#events-past'
44-
title: 'Past events'
45-
options: { }
4642
field_deck:
4743
-
4844
value: '<p><strong>Digital.gov</strong> provides free webinars that highlight the innovations, case studies, tools, and resources people in government need most.</p>'

web/themes/custom/digital_gov/templates/node/node--landing-page--events.html.twig

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,37 @@
7676

7777
{% if content.field_buttons %}
7878
<div class="join-buttons">
79-
{{ content.field_buttons|field_value }}
79+
{# The "Past events" anchor button is hidden while the Past Events
80+
heading is disabled. Remove the filter to restore it. #}
81+
{% for key, item in node.field_buttons %}
82+
{% if '#events-past' not in item.uri %}
83+
{{ content.field_buttons[key] }}
84+
{% endif %}
85+
{% endfor %}
8086
</div>
8187
{% endif %}
8288
</div>
8389
</header>
8490

91+
{# Upcoming Events section hidden per DIGITAL ticket - no events planned
92+
for the near future. Restore this section if events resume.
8593
<section class="upcoming-events article-list">
8694
<div class="grid-container grid-container-desktop">
8795
<h2>Upcoming Events</h2>
8896
{{ drupal_view('events', 'block_1') }}
8997
</div>
9098
</section>
99+
#}
91100

92101
<section id="events-past">
102+
{# Past Events heading hidden while the Upcoming Events section is
103+
disabled. Restore the heading if events resume.
93104
<header>
94105
<div class="grid-container grid-container-desktop">
95106
<h2>Past Events</h2>
96107
</div>
97108
</header>
109+
#}
98110
<div class="article-list">
99111
<div class="grid-container grid-container-desktop">
100112
{{ drupal_view('past_events', 'block_1') }}

0 commit comments

Comments
 (0)