diff --git a/content/events/test.de.md b/content/events/test.de.md new file mode 100644 index 0000000..c515c8d --- /dev/null +++ b/content/events/test.de.md @@ -0,0 +1,11 @@ +--- +title: "Test DE" +talk: "Blub DE" +date: "2024-04-20T19:22:00Z" +slot: + start: "2024-04-28T15:00:00-06:00" + end: "2024-04-29T15:20:00-06:00" +url: /events.ics +--- + +Lalala diff --git a/content/events/test.en.md b/content/events/test.en.md new file mode 100644 index 0000000..913edd9 --- /dev/null +++ b/content/events/test.en.md @@ -0,0 +1,11 @@ +--- +title: "Test EN" +talk: "Blub EN" +date: "2024-04-20T19:22:00Z" +slot: + start: "2024-04-28T15:00:00-06:00" + end: "2024-04-29T15:20:00-06:00" +url: /events.ics +--- + +Lalala diff --git a/hugo.toml b/hugo.toml index 4e1582c..1c6b1a4 100644 --- a/hugo.toml +++ b/hugo.toml @@ -12,6 +12,9 @@ timeout = "120s" disableKinds = ['taxonomy', 'term'] +[outputs] +section = ["HTML", "Calendar"] + [module] replacements = "github.com/colinwilson/lotusdocs -> lotusdocs" [[module.imports]] diff --git a/layouts/events/list.ics b/layouts/events/list.ics new file mode 100644 index 0000000..7edfe31 --- /dev/null +++ b/layouts/events/list.ics @@ -0,0 +1,20 @@ +BEGIN:VCALENDAR +VERSION:2.0 +PRODID:-//elm-conf//speaker calendar//EN +CALSCALE:GREGORIAN +METHOD:PUBLISH +{{range .Pages -}} +BEGIN:VEVENT +ORGANIZER;CN="Brian Hicks":mailto:brian@brianthicks.com +SUMMARY:{{.Title}}{{with .Params.talk}} – {{.}}{{end}} +UID:{{.Params.slot.start}}@2017.elm-conf.us +SEQUENCE:0 +STATUS:CONFIRMED +DTSTAMP:{{dateFormat "20060102T150405Z" .Date}} +DTSTART;TZID=America/Chicago:{{dateFormat "20060102T150405" .Params.slot.start}} +DTEND;TZID=America/Chicago:{{dateFormat "20060102T150405" .Params.slot.end}} +LOCATION:{{with .Params.location}}{{.}}{{else}}Main Ballroom{{end}} +URL:{{.Permalink}} +END:VEVENT +{{end -}} +END:VCALENDAR \ No newline at end of file diff --git a/layouts/index.de.html b/layouts/index.de.html index f02292a..b23f967 100644 --- a/layouts/index.de.html +++ b/layouts/index.de.html @@ -1,3 +1,30 @@ {{ define "main" }} {{ partial "landing.html" (dict "landingData" .Site.Data.de.landing) }} + + +
{{ end }} \ No newline at end of file