-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathcalendar.shtml
More file actions
20 lines (20 loc) · 1.23 KB
/
Copy pathcalendar.shtml
File metadata and controls
20 lines (20 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Zig Day//Events Calendar//EN
METHOD:PUBLISH
REFRESH-INTERVAL;VALUE=DURATION:P1D
X-PUBLISHED-TTL:P1D
<ctx url="$page.link().suffix('events.ics')">SOURCE;VALUE=URI:https://zig.day/<ctx :text="$ctx.url"></ctx>
URL:https://zig.day/<ctx :text="$ctx.url"></ctx></ctx><ctx :loop="$page.subpages()" tz="$page.custom.get('timezone')">
BEGIN:VEVENT
UID:<ctx :text="$loop.it.custom.get('start').parseDate().format('2006_01_02').suffix('_', $page.parentSection().title, '_', $page.title)"></ctx>@zig.day
DTSTAMP:<ctx :text="$build.generated.format('20060102T150405Z')"></ctx>
DTSTART:<ctx :text="$loop.it.custom.get('start').parseDate().format('20060102T150405')"></ctx>
DTEND:<ctx :text="$loop.it.custom.get('start').parseDate().add($loop.it.custom.get('duration'), 'hour').format('20060102T150405')"></ctx>
SUMMARY:Zig Day <ctx :text="$loop.it.title"></ctx> #<ctx :text="$loop.len.plus($loop.idx.div(-1))"></ctx>
DESCRIPTION:https://zig.day/<ctx :text="$loop.it.link()"></ctx>
LOCATION:<ctx :text="$loop.it.custom.get('address')"></ctx>
SEQUENCE:<ctx :text="$loop.it.custom.get('version')"></ctx>
LAST-MODIFIED:<ctx :text="$build.generated.format('20060102T150405Z')"></ctx>
END:VEVENT</ctx>
END:VCALENDAR