Toevoegen evenementen en voorbereiding voor iCal
This commit is contained in:
parent
dff3593cee
commit
298711a90f
6 changed files with 346 additions and 0 deletions
24
themes/nluug/layouts/evenementen/single.ics
Normal file
24
themes/nluug/layouts/evenementen/single.ics
Normal file
|
@ -0,0 +1,24 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
CALSCALE:GREGORIAN
|
||||
BEGIN:VEVENT
|
||||
{{ if not (isset .Params "h") }}
|
||||
SUMMARY:{{ .Title }}
|
||||
DESCRIPTION:{{ trim (.Content | plainify) "\n" }} Voor meer informatie zie {{ .Site.Params.LiveSiteUrl }}{{ .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 }}
|
||||
DTSTART;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" (index .Params.Properties.start 0) }}
|
||||
DTEND;TZID=Europe/Amsterdam:{{ dateFormat "20060102T150405" (index .Params.Properties.end 0) }}
|
||||
{{ with .Params.Properties.location }}LOCATION:{{ index . 0 }}{{ end }}
|
||||
{{ end }}
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue