7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/partials/show-highlighted-event.html

48 lines
2.1 KiB
HTML
Raw Permalink Normal View History

2023-06-15 19:42:21 +02:00
<div>
<div class="highlight-box highlight-box-nluug">
<h3>{{ .Params.event_title }}</h3>
{{ $event_start := .Params.event_start | time }}
{{ if le now $event_start }}
{{ if .Params.event_cfp_link }}
{{ if .Params.event_cfp_start_date }}
{{ $event_cfp_start_date := .Params.event_cfp_start_date | time }}
{{ if le now $event_cfp_start_date }}
2023-09-15 13:47:09 +02:00
<p>De Call for Proposals opent op {{ .Params.event_cfp_start_date | time.Format ":date_full" }}.</p>
2023-06-15 19:42:21 +02:00
{{ else }}
2023-09-15 13:47:09 +02:00
{{ if .Params.event_cfp_close_date }}
{{ $event_cfp_close_date := .Params.event_cfp_close_date | time }}
{{ if le now $event_cfp_close_date }}
<p>CFP: <strong class="darkgreen"><a href="{{ .Params.event_cfp_link }}">Geopend</a></strong></p>
2023-06-15 19:42:21 +02:00
{{ end }}
{{ else }}
2023-06-15 19:50:22 +02:00
<p>CFP: <strong class="darkgreen"><a href="{{ .Params.event_cfp_link }}">Geopend</a></strong></p>
2023-06-15 19:42:21 +02:00
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
<h3>{{ .Params.event_location }}</h3>
<p>{{ .Params.event_address.street_address }}<br>{{ .Params.event_address.postal_code }}, {{ .Params.event_address.city }}<br>{{ .Params.event_address.country_name }}</p>
{{ $compare_event_start_date := .Params.event_start | time.Format "2006-01-02" }}
{{ $compare_event_end_date := .Params.event_end | time.Format "2006-01-02" }}
{{ if eq $compare_event_start_date $compare_event_end_date }}
<h3>Datum en tijd</h3>
<p>Dit evenement {{ if ge now $event_start }}vond{{ else }}vindt{{ end}} plaats op {{ .Params.event_start | time.Format ":date_full" }} ({{ .Params.event_start | time.Format "15:04" }}-{{ .Params.event_end | time.Format "15:04" }}).</p>
{{ else }}
<h3>Data</h3>
<ul>
<li>Start evenement: {{ .Params.event_start | time.Format "2006-01-02 15:04" }}</li>
<li>Einde evenement: {{ .Params.event_end | time.Format "2006-01-02 15:04" }}</li>
</ul>
{{ end }}
<p><a class="button" href="{{ .RelPermalink }}">Meer informatie</a></p>
</div>
</div>