Conferentiepagina en iCalendar bijgewerkt

This commit is contained in:
Michael Boelen 2023-05-22 11:09:23 +02:00
parent 861c0a1b96
commit babfec6522
2 changed files with 10 additions and 15 deletions

View file

@ -21,19 +21,10 @@ 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 }}
SUMMARY:{{ .Params.event_title | default .Title }}
DESCRIPTION:Voor meer informatie zie {{ .Permalink }}
DTSTART;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" .Params.event_start }}
DTEND;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" .Params.event_end }}
{{ if .Params.event_address }}LOCATION:{{ .Params.event_address.street_address }}, {{ .Params.event_address.city }}, {{ .Params.event_address.country_name }}{{ end }}
{{ else }}
SUMMARY:{{ index .Params.Properties.name 0 }}
{{ with .Params.Properties.url }}
DESCRIPTION: Voor meer informatie zie {{ index . 0 }}.
{{ else }}
DESCRIPTION: Voor meer informatie zie {{ .Site.Params.LiveSiteUrl }}{{ .Permalink }}
{{ end }}
{{ with .Params.Properties.location }}LOCATION:{{ index . 0 }}{{ end }}
END:VEVENT
END:VCALENDAR
{{ end }}{{ end }}
END:VCALENDAR{{ end }}{{ end }}