From 9d1f28cacb57096a3792178dc5c3665fb7e74965 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Fri, 31 Jan 2020 05:20:12 -0500 Subject: [PATCH] assignments: add ical link to settings --- gendates.go | 1 + tpl/assignments.adoc.tpl | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gendates.go b/gendates.go index ec795b3..7b1407e 100644 --- a/gendates.go +++ b/gendates.go @@ -90,6 +90,7 @@ type Config struct { Text string Description string Legal string + ICalLink string Start time.Time End time.Time diff --git a/tpl/assignments.adoc.tpl b/tpl/assignments.adoc.tpl index c709f4c..23f5767 100644 --- a/tpl/assignments.adoc.tpl +++ b/tpl/assignments.adoc.tpl @@ -12,3 +12,6 @@ {{end}} |=== +{{if .ICalLink }} +These events are in a public calendar you may add to your own calendar software: {{.ICalLink}}[Published iCal Link] +{{end}}