Skip to content

Commit

Permalink
Improve ics
Browse files Browse the repository at this point in the history
  • Loading branch information
rverst committed Nov 17, 2020
1 parent 5341971 commit fd0efb5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions content/termine/2020/Biwak.md
@@ -1,8 +1,8 @@
---
title: "Biwak"
date: 2019-12-10T06:00:00+01:00
lastmod: 2020-05-04T10:00:00+02:00
revision: 1
lastmod: 2020-11-17T10:00:00+02:00
revision: 2
start: 2020-05-16T16:30:00+02:00
location: platz
draft: false
Expand Down
4 changes: 2 additions & 2 deletions content/termine/2020/Frauentag.md
@@ -1,8 +1,8 @@
---
title: "Frauenfest"
date: 2019-12-10T06:00:00+01:00
lastmod: 2020-08-17T07:20:00+02:00
revision: 1
lastmod: 2020-11-17T07:20:00+02:00
revision: 2
start: 2020-11-08
location: Dinkehof
draft: false
Expand Down
4 changes: 2 additions & 2 deletions content/termine/2020/Jahreshauptversammlung.md
@@ -1,8 +1,8 @@
---
title: "Jahreshauptversammlung"
date: 2019-12-10T06:00:00+01:00
lastmod: 2020-10-24T09:00:00+02:00
revision: 1
lastmod: 2020-11-14T09:00:00+02:00
revision: 2
start: 2020-11-14T20:00:00+01:00
location: dinkelhof
draft: false
Expand Down
6 changes: 3 additions & 3 deletions themes/bb2018/layouts/termine/calentry.ics
Expand Up @@ -5,12 +5,12 @@
{{ $seq := 0 }}
{{ with .Params.revision }}{{ $seq = . }}{{ end -}}
{{ $status := "CONFIRMED" -}}
{{ with .Params.canceled }}{{ if . }}{{ $status = "CANCELED" }}{{ end -}}{{ end -}}
{{ with .Params.canceled }}{{ if . }}{{ $status = "CANCELED" }}{{ end -}}{{ end }}
{{ if and $hasStart (not .Draft) }}
BEGIN:VEVENT
ORGANIZER;CN="Schützenverein Buterland-Beckerhook":mailto:Kontakt@Buterland-Beckerhook.de
SUMMARY:{{ .Title }}
{{ with .Content }}DESCRIPTION: {{ . | plainify }}{{ end -}}
SUMMARY:{{ .Title }}{{ with .Params.canceled }}{{ if . }} (Abgesagt){{ end }}{{ end }}
{{ with .Content }}DESCRIPTION:{{ . | plainify }}{{ end -}}
UID:{{ sha256 (printf "%s-%s" .Title (dateFormat "01-2006" $start)) }}
SEQUENCE:{{ $seq }}
STATUS:{{ $status }}
Expand Down

0 comments on commit fd0efb5

Please sign in to comment.