forked from cccb-website-team/www
adjust styling and bump dates etc
This commit is contained in:
parent
476bf0d6d9
commit
a584a5252f
40 changed files with 678 additions and 294 deletions
|
|
@ -2,10 +2,10 @@
|
|||
<events>
|
||||
{{ range .Pages }}
|
||||
<event>
|
||||
<title>{{ .Title }}</title>
|
||||
<title>{{ .Title | html }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<date>{{ .Date.Format "2006-01-02" }}</date>
|
||||
<description>{{ .Summary | plainify }}</description>
|
||||
<description>{{ .Summary | plainify | html }}</description>
|
||||
{{ with .Params.location }}<location>{{ . }}</location>{{ end }}
|
||||
</event>
|
||||
{{ end }}
|
||||
21
layouts/_default/single.ics
Normal file
21
layouts/_default/single.ics
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:-//CCCB//Calendar//DE
|
||||
{{ with .Title }}
|
||||
X-WR-CALNAME:{{ . }}
|
||||
{{ end }}
|
||||
CALSCALE:GREGORIAN
|
||||
METHOD:PUBLISH
|
||||
{{ if and .Date (not .Params.members_only) }}
|
||||
BEGIN:VEVENT
|
||||
UID:{{ .File.UniqueID }}@berlin.ccc.de
|
||||
DTSTAMP:{{ .Date.UTC.Format "20060102T150405Z" }}
|
||||
DTSTART:{{ .Date.UTC.Format "20060102T150405Z" }}
|
||||
{{ with .Params.event.end }}DTEND:{{ dateFormat "20060102T150405Z" . }}{{ end }}
|
||||
SUMMARY:{{ .Title }}
|
||||
DESCRIPTION:{{ .Summary | plainify }}
|
||||
URL:{{ .Permalink }}
|
||||
{{ with .Params.location }}LOCATION:{{ . }}{{ end }}
|
||||
END:VEVENT
|
||||
{{ end }}
|
||||
END:VCALENDAR
|
||||
Loading…
Reference in a new issue