fixes offline dependencies (#15257)

fixing tweet tags by replacing with embedded html
This commit is contained in:
Jim Angel
2019-07-11 18:07:04 -05:00
committed by Kubernetes Prow Robot
parent ec61bf6c84
commit 05a84463b2
4 changed files with 10 additions and 4 deletions
+7 -1
View File
@@ -1,4 +1,10 @@
{{ $date := now.Format "2006-01-02T15:04:05Z07:00" | querify "timeMin" }}
{{/* Setting external resource based on whether hugo is running locally or public */}}
{{ if .Site.IsServer }}
{{ $jurl := printf "" $date }}
{{ else }}
{{ $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 }}
{{ $dataJ := getJSON $jurl }}
@@ -8,4 +14,4 @@
<div class="event"><a href="{{ safeHTML $url }}">{{ .summary }}</a> - {{ .location }} - {{ .start.date }}</div>
{{ end }}
{{ end }}