From 5f7c2b8793fdb960f264b8da94c296f6909cce49 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 10 May 2023 20:04:45 +0200 Subject: [PATCH] Verbeterde weergave voor evenementen --- themes/nluug/layouts/evenementen/list.html | 15 +++++++++++ themes/nluug/layouts/evenementen/single.html | 27 ++++++++++++++------ themes/nluug/layouts/evenementen/single.ics | 19 ++++++++++++++ 3 files changed, 53 insertions(+), 8 deletions(-) create mode 100644 themes/nluug/layouts/evenementen/list.html diff --git a/themes/nluug/layouts/evenementen/list.html b/themes/nluug/layouts/evenementen/list.html new file mode 100644 index 0000000..8e67086 --- /dev/null +++ b/themes/nluug/layouts/evenementen/list.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+ +
+{{ end }} diff --git a/themes/nluug/layouts/evenementen/single.html b/themes/nluug/layouts/evenementen/single.html index 7de47c8..1f06bb1 100644 --- a/themes/nluug/layouts/evenementen/single.html +++ b/themes/nluug/layouts/evenementen/single.html @@ -1,22 +1,22 @@ {{ define "main" }} - -
- {{ .Content }} + {{ with .Params.event_title }}

{{ . }}

{{ end }} +
{{ .Content }}
{{ if isset .Params "event_start" }} {{ $event_start := .Params.event_start | time }} -
+ +

Locatie

+ {{ .Params.event_location }} +

{{ .Params.event_address.street_address }}
{{ .Params.event_address.postal_code }}, {{ .Params.event_address.city }}
{{ .Params.event_address.country_name }}

+ +

Datum en tijd

- {{ with .OutputFormats.Get "calendarevent" }} - Kalender (iCal-bestand) - {{ end }} - {{ with .Params.event_register_link }} {{ if le now $event_start }} Inschrijven @@ -24,6 +24,17 @@

Dit evenement is al afgelopen, inschrijven is daarom niet meer mogelijk.

{{ end }} {{ end }} + +

Kalender

+

Zet het event alvast in je agenda met onderstaande opties!

+ + + {{ else }}

Waarschuwing: dit evenement mist gegevens zoals start en einddatum.

{{ end }} diff --git a/themes/nluug/layouts/evenementen/single.ics b/themes/nluug/layouts/evenementen/single.ics index 2dbd8eb..38ca89e 100644 --- a/themes/nluug/layouts/evenementen/single.ics +++ b/themes/nluug/layouts/evenementen/single.ics @@ -1,6 +1,25 @@ {{ if not (isset .Params "no-ics-file") }}BEGIN:VCALENDAR VERSION:2.0 CALSCALE:GREGORIAN +METHOD:PUBLISH +BEGIN:VTIMEZONE +TZID:Europe/Amsterdam +X-LIC-LOCATION:Europe/Amsterdam +BEGIN:DAYLIGHT +TZOFFSETFROM:+0100 +TZOFFSETTO:+0200 +TZNAME:CEST +DTSTART:19700329T020000 +RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU +END:DAYLIGHT +BEGIN:STANDARD +TZOFFSETFROM:+0200 +TZOFFSETTO:+0100 +TZNAME:CET +DTSTART:19701025T030000 +RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU +END:STANDARD +END:VTIMEZONE BEGIN:VEVENT SUMMARY:{{ .Title }} DESCRIPTION:{{ trim (.Content | plainify) "\n" }} Voor meer informatie zie {{ .Site.Params.LiveSiteUrl }}{{ .Permalink }}