File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 2
2
3
3
4
4
{{/* Setting external resource based on whether hugo is running locally or public */}}
5
- {{ if .Site.IsServer }}
6
- {{ $jurl := printf "" $date }}
7
- {{ else }}
8
- {{ $jurl := printf "https://www.googleapis.com/calendar/v3/calendars/nt2tcnbtbied3l6gi2h29slvc0%%40group.calendar.google.com/events?orderBy=startTime&singleEvents=true&%s&key=AIzaSyAST-sCyPJzMQJSl6_vRPW9r4DNLPaDIyM" $date }}
9
- {{ $dataJ := getJSON $jurl }}
10
-
11
- {{ range first 4 $dataJ.items }}
12
- {{ $url := findRE "(http|ftp|https)://([\\w_-]+(?:(?:\\.[\\w_-]+)+))([\\w.,@?^=%&:/~+#-]*[\\w@?^=%&/~+#-])?" .description }}
13
- {{ $url := index $url 0 }}
14
- < div class ="event "> < a href ="{{ safeHTML $url }} "> {{ .summary }}</ a > - {{ .location }} - {{ .start.date }}</ div >
15
- {{ end }}
16
-
17
- {{ end }}
5
+ {{/* Disabled as this is breaking website builds */}}
You can’t perform that action at this time.
0 commit comments