diff --git a/themes/nluug/layouts/evenementen/schedule-event.html b/themes/nluug/layouts/evenementen/schedule-event.html index 2a03e6f..bb6210b 100644 --- a/themes/nluug/layouts/evenementen/schedule-event.html +++ b/themes/nluug/layouts/evenementen/schedule-event.html @@ -1,38 +1,42 @@ {{ define "main" }} - {{ $cfp_open := false }} + {{ .Scratch.Set "cfp_open" false }}
Een goed programma is afhankelijk van sprekers met interessante lezingen. Wil je bijdragen aan dit programma, dan verwelkomen we graag je inzending(en)!
{{ if .Params.event_cfp_start_date }} - {{ $event_cfp_start_date := .Params.event_cfp_start_date | time }} - {{ if le now $event_cfp_start_date }} -De Call for Proposals opent op {{ .Params.event_cfp_start_date | time.Format ":date_full" }}.
- {{ else }} - {{ if .Params.event_cfp_end_date }} - {{ $event_cfp_end_date := .Params.event_cfp_end_date | time }} - {{ if ge now $event_cfp_end_date }} -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.
- {{ else }} - Naar CFP - {{ $cfp_open = true }} - {{ end }} + {{ $event_cfp_start_date := .Params.event_cfp_start_date | time }} + {{ if le now $event_cfp_start_date }} +De Call for Proposals opent op {{ .Params.event_cfp_start_date | time.Format ":date_full" }}.
{{ else }} - Naar CFP - {{ $cfp_open = true }} + {{ $event_cfp_close_date := .Params.event_cfp_close_date | time }} + {{ if ge now $event_cfp_close_date }} +De Call for Proposals is gesloten na {{ $event_cfp_close_date }}. Mocht je toch nog een inzending hebben, neem dan contact op met de programmacommissie.
+ {{ else }} + Naar CFP + {{ end }} {{ end }} - {{ end }} - {{ else }} -Fout: Er ontbreekt een datum wanneer de CFP open gaat (event_cfp_start).
{{ end }} - {{ else }} -Fout: Er ontbreekt een link voor de Call for Proposals (event_cfp_link).
- {{ end }} {{ end }} @@ -108,6 +112,7 @@De CFP is geopend!
Wil je graag een bepaalde spreker zien? Contacteer onze programmacommissie.
diff --git a/themes/nluug/layouts/partials/show-highlighted-event.html b/themes/nluug/layouts/partials/show-highlighted-event.html index b50f51e..6acd470 100644 --- a/themes/nluug/layouts/partials/show-highlighted-event.html +++ b/themes/nluug/layouts/partials/show-highlighted-event.html @@ -9,14 +9,12 @@ {{ if .Params.event_cfp_start_date }} {{ $event_cfp_start_date := .Params.event_cfp_start_date | time }} {{ if le now $event_cfp_start_date }} -De Call for Proposals opent op {{ .Params.event_cfp_start_date | time.Format ":date_full" }}.
+De Call for Proposals opent op {{ .Params.event_cfp_start_date | time.Format ":date_full" }}.
{{ else }} - {{ if .Params.event_cfp_end_date }} - {{ $event_cfp_end_date := .Params.event_cfp_end_date | time }} - {{ if ge now $event_cfp_end_date }} -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.
- {{ else }} -CFP: Geopend
+ {{ if .Params.event_cfp_close_date }} + {{ $event_cfp_close_date := .Params.event_cfp_close_date | time }} + {{ if le now $event_cfp_close_date }} +CFP: Geopend
{{ end }} {{ else }}CFP: Geopend