Remove tickets from past events
This commit is contained in:
parent
cf5458909d
commit
fdb835f397
1 changed files with 74 additions and 70 deletions
|
|
@ -24,10 +24,14 @@
|
|||
|
||||
<img src="bar.png" class="separator" />
|
||||
<div class="concert-buttons">
|
||||
{{ $currentTime := (time now) }}
|
||||
{{ $delta := $currentTime.Sub (time .Params.ConcertDate ) }}
|
||||
{{ if lt $delta 0 }}
|
||||
<a class="concert-button" href="{{ .Params.TicketsLink }}">
|
||||
<img src="billets.png" />
|
||||
<span>Billets</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
<a class="concert-button" href="{{ .RelPermalink }}">
|
||||
<img src="info.png" />
|
||||
<span>Infos</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue