Remove tickets from past events

This commit is contained in:
dolphinau 2025-11-17 18:39:35 +01:00
parent cf5458909d
commit fdb835f397
No known key found for this signature in database

View file

@ -24,10 +24,14 @@
<img src="bar.png" class="separator" /> <img src="bar.png" class="separator" />
<div class="concert-buttons"> <div class="concert-buttons">
{{ $currentTime := (time now) }}
{{ $delta := $currentTime.Sub (time .Params.ConcertDate ) }}
{{ if lt $delta 0 }}
<a class="concert-button" href="{{ .Params.TicketsLink }}"> <a class="concert-button" href="{{ .Params.TicketsLink }}">
<img src="billets.png" /> <img src="billets.png" />
<span>Billets</span> <span>Billets</span>
</a> </a>
{{ end }}
<a class="concert-button" href="{{ .RelPermalink }}"> <a class="concert-button" href="{{ .RelPermalink }}">
<img src="info.png" /> <img src="info.png" />
<span>Infos</span> <span>Infos</span>