6
0
Fork 0

Extra aandacht aan de CFP

This commit is contained in:
Michael Boelen 2023-06-26 15:32:53 +02:00
parent 8f14e1e685
commit 8255afc466

View file

@ -1,10 +1,10 @@
{{ define "main" }} {{ define "main" }}
{{ $cfp_open := false }}
<div>{{ .Content }}</div> <div>{{ .Content }}</div>
{{ if isset .Params "event_start" }} {{ if isset .Params "event_start" }}
{{ $event_start := .Params.event_start | time }} {{ $event_start := .Params.event_start | time }}
{{ if le now $event_start }} {{ if le now $event_start }}
{{ if .Params.event_cfp_link }} {{ if .Params.event_cfp_link }}
<h2>Call for Proposals</h2> <h2>Call for Proposals</h2>
@ -20,9 +20,11 @@
<p>De Call for Proposals is gesloten na {{ $event_cfp_end_date }}. Mocht je toch nog een inzending hebben, neem dan contact op met de programmacommissie.</p> <p>De Call for Proposals is gesloten na {{ $event_cfp_end_date }}. Mocht je toch nog een inzending hebben, neem dan contact op met de programmacommissie.</p>
{{ else }} {{ else }}
<a href="{{ .Params.event_cfp_link }}" class="button">Naar CFP</a> <a href="{{ .Params.event_cfp_link }}" class="button">Naar CFP</a>
{{ $cfp_open = true }}
{{ end }} {{ end }}
{{ else }} {{ else }}
<a href="{{ .Params.event_cfp_link }}" class="button">Naar CFP</a> <a href="{{ .Params.event_cfp_link }}" class="button">Naar CFP</a>
{{ $cfp_open = true }}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ else }} {{ else }}
@ -106,6 +108,13 @@
<h2>Programma</h2> <h2>Programma</h2>
{{ if $cfp_open }}
<p class="darkgreen">De CFP is geopend!</p>
<p>Wil je graag een bepaalde spreker zien? Contacteer onze <a href="{{ relref . "organisatie/commissies/pc/index.md" }}">programmacommissie</a>.</p>
<p>Heb je zelf een leuke presentatie in gedachten? Dien dan een voorstel in!</p>
<a class="btn btn-cta" href="{{ if .Params.event_cfp_link }}{{ .Params.event_cfp_link }}{{ else }}https://cfp.nluug.nl/{{ end }}" rel="nofollow noopener">Voorstel indienen</a>
<p><strong>Leestip</strong>: <a href="{{ relref . "evenementen/nluug/cfp/index.md" }}">tips voor sprekers en onze werkwijze</a>.</p>
{{ end }}
{{ $.Scratch.Set "counter" 0 }} {{ $.Scratch.Set "counter" 0 }}
{{ with .Params.event_schedule }} {{ with .Params.event_schedule }}
{{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }} {{ $.Scratch.Set "counter" (add ($.Scratch.Get "counter") 1) }}