New Community page, as designed by @alexcontini (#13046)
* new community page * update
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
f59e872479
commit
4e35312a7f
@@ -1,8 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "post-hero" }}
|
||||
<a href="https://events.linuxfoundation.org/events/kubecon-cloudnativecon-europe-2019/"><img src="/images/kubecon_ad_eu_2019.jpg" alt="KubeConBarcelona" width="49.9%" align="center"></a>
|
||||
<a href="https://events.linuxfoundation.cn/events/kubecon-cloudnativecon-china-2019/"><img src="/images/kubecon_ad_china_2019.jpg" alt="KubeConShanghai" width="49.9%" align="right"></a>
|
||||
<link rel="stylesheet" type="text/css" href="{{ "css/newcommunity.css" | relURL }}">
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{{ $date := now.Format "2006-01-02T15:04:05Z07:00" | querify "timeMin" }}
|
||||
{{ $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 }}
|
||||
|
||||
{{ range first 4 $dataJ.items }}
|
||||
{{ $url := findRE "(http|ftp|https)://([\\w_-]+(?:(?:\\.[\\w_-]+)+))([\\w.,@?^=%&:/~+#-]*[\\w@?^=%&/~+#-])?" .description }}
|
||||
{{ $url := index $url 0 }}
|
||||
<div class="event"><a href="{{ safeHTML $url }}">{{ .summary }}</a> - {{ .location }} - {{ .start.date }}</div>
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user