From 338d8b9834a3e8101f8247943c0056eb976c4194 Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Mon, 25 Dec 2023 21:55:09 +0000 Subject: [PATCH] Add title & desc for the calendar --- content/calendar/_index.md | 1 + layouts/calendar/list.ics | 2 ++ 2 files changed, 3 insertions(+) diff --git a/content/calendar/_index.md b/content/calendar/_index.md index 7b0cf951..fa9d1329 100644 --- a/content/calendar/_index.md +++ b/content/calendar/_index.md @@ -5,6 +5,7 @@ outputs: - html - calendar - rss +summary: Some events I'm thinking of going to — get in touch if you'd like to join me! --- I enjoy making new friends, and hanging out with the folks I already know and love. Below is a calendar of events I'm thinking of going to — if you'd like to come with me, get in touch and perhaps we can go together! diff --git a/layouts/calendar/list.ics b/layouts/calendar/list.ics index e2c1ae00..c9841109 100644 --- a/layouts/calendar/list.ics +++ b/layouts/calendar/list.ics @@ -2,6 +2,8 @@ BEGIN:VCALENDAR CALSCALE:GREGORIAN VERSION:2.0 PRODID:-//www.byjp.me +X-WR-CALNAME:{{ .Title }} byJP +X-WR-CALDESC:{{ .Summary | replaceRE "(.{61})(.*)" "$1\r\n $2" | replaceRE "( [^\r\n]{72})([^\r\n]*)" "$1\r\n $2" }} {{- range .Data.Pages}} BEGIN:VEVENT UID:byjp{{replace .Page.RelPermalink "/" "-"}}