Skip to content

Commit a325ddb

Browse files
authored
Merge pull request #22223 from sftim/20200630_disable_upcoming_events
(Temporarily) disable upcoming events for live site
2 parents 5f16ced + d5c74c0 commit a325ddb

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

layouts/shortcodes/upcoming-events.html

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,4 @@
22

33

44
{{/* 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 */}}

0 commit comments

Comments
 (0)