Skip to content

Commit 77705a4

Browse files
committed
Don't display upcoming events in footer if no upcoming events
1 parent 782e4ca commit 77705a4

File tree

1 file changed

+3
-1
lines changed
  • themes/hugoplate/layouts/partials/essentials

1 file changed

+3
-1
lines changed

themes/hugoplate/layouts/partials/essentials/footer.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@
111111
</li>
112112
</ul>
113113
</div>
114+
{{ $events := where .Site.RegularPages "Params.upcoming" "eq" true }}
115+
{{ if $events }}
114116
<div class="footer-menu-item frontiers-section">
115117
<p><a href="/workshops/">Upcoming Workshops</a></p>
116118
<ul class="footer-menu-subitem">
@@ -123,8 +125,8 @@
123125
</li>
124126
{{ end }}
125127
</ul>
126-
127128
</div>
129+
{{ end }}
128130
</div>
129131
</div>
130132
</div>

0 commit comments

Comments
 (0)