7
0
Fork 0
This repository has been archived on 2024-10-15. You can view files and clone it, but cannot push or open issues or pull requests.
fediversity_website_archive/themes/nluug/layouts/evenementen/single.ics

21 lines
937 B
Plaintext

{{ if not (isset .Params "no-ics-file") }}BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
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 }}
{{ with .Params.Properties.location }}LOCATION:{{ index . 0 }}{{ end }}
{{ end }}
END:VEVENT
END:VCALENDAR