Commit 2c6d0575 authored by betz's avatar betz

.ics file for an event

parent b98c7b59
Pipeline #38677984 passed with stages
in 1 minute and 15 seconds
......@@ -18,6 +18,8 @@ outputFormats:
mediaType: "application/json"
baseName: "hackeragenda"
isPlainText: true
Calendar:
protocol: "http://"
outputs:
home:
......
---
startdate: 2019-01-31
#starttime: "10:00"
starttime: "10:00"
enddate: 2019-02-01
allday: true
linktitle: "pre-FOSDEM GNU Radio Hackfest"
......@@ -10,6 +10,9 @@ eventtype: "Workshop"
price: "Free"
series: "bitday2019"
image: "gnuradio.png"
outputs:
- HTML
- Calendar
---
Hacking on the GNU Radio codebase & related project will happen.
......
......@@ -30,6 +30,9 @@
{{ .Content }}
</article>
{{ with .OutputFormats.Get "calendar" -}}
<a href="{{ .Permalink | safeURL }}">Add this event to your calendar.</a>
{{- end }}
{{ partial "bottom.html" . }}
......
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hsbxl.be//events
BEGIN:VEVENT
UID:19970610T172345Z-AF23B2@hsbxl.be
DTSTAMP:{{dateFormat "20060102T150405" .Params.startdate}}
DTSTART:{{dateFormat "20060102T150405" .Params.startdate}}
DTEND:{{dateFormat "20060102T150405" .Params.enddate}}
SUMMARY:{{.Title}}
DESCRIPTION:{{.Permalink}}
LOCATION:{{with .Params.location}}{{.}}{{else}}TBD{{end}}
END:VEVENT
END:VCALENDAR
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment