Skip to content

Commit 2693080

Browse files
committed
fix(venue): hide venue details on homepage while venue is changing
The homepage "The Venue" section still showed Trinity College Dublin's name, description, address, and map unconditionally, even though the dedicated /venue/ page already hides these details when venueChangePending is true. Apply the same conditional to venue-home.html: show a venue-change notice instead, and collapse the two-column layout to a single centred column since there's no map to show alongside it.
1 parent 815a1f8 commit 2693080

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

layouts/partials/venue-home.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<section class="py-24">
22
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
3-
<div class="grid grid-cols-1 lg:grid-cols-2 gap-12 items-center">
4-
<div>
3+
<div class="grid grid-cols-1 {{ if not .Site.Params.venueChangePending }}lg:grid-cols-2{{ end }} gap-12 items-center">
4+
<div{{ if .Site.Params.venueChangePending }} class="max-w-2xl mx-auto text-center"{{ end }}>
55
<h2 class="text-3xl sm:text-4xl font-bold text-text-heading mb-4">The Venue</h2>
6+
{{ if .Site.Params.venueChangePending }}
7+
<div class="bg-bg-card border border-py-blue/20 rounded-2xl px-6 py-5 text-text-secondary text-sm leading-relaxed mb-6 text-left">
8+
<strong class="text-text-heading block mb-1">Venue and date to be confirmed.</strong>
9+
Our booked venue can no longer host {{ .Site.Title }}. We are working to confirm a new venue and date, and will update this page as soon as details are available.
10+
</div>
11+
{{ else }}
612
<h3 class="text-xl text-py-blue-light font-semibold mb-4">{{ .Site.Params.venue }}</h3>
713
<p class="text-text-secondary mb-6 leading-relaxed">
814
Trinity College Dublin is one of Ireland's most iconic universities, located in
@@ -13,11 +19,13 @@ <h3 class="text-xl text-py-blue-light font-semibold mb-4">{{ .Site.Params.venue
1319
<svg class="w-5 h-5 inline-block text-py-yellow mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"/></svg>
1420
{{ .Site.Params.venueAddress }}
1521
</p>
22+
{{ end }}
1623
<a href="/venue/" class="text-py-blue-light hover:text-py-yellow font-semibold transition-colors">
1724
Venue Details &rarr;
1825
</a>
1926
</div>
2027

28+
{{ if not .Site.Params.venueChangePending }}
2129
{{ $lat := .Site.Params.venueMapLat | float }}
2230
{{ $lon := .Site.Params.venueMapLon | float }}
2331
{{ $d := 0.008 }}
@@ -30,6 +38,7 @@ <h3 class="text-xl text-py-blue-light font-semibold mb-4">{{ .Site.Params.venue
3038
title="Venue map">
3139
</iframe>
3240
</div>
41+
{{ end }}
3342
</div>
3443
</div>
3544
</section>

0 commit comments

Comments
 (0)