-
Notifications
You must be signed in to change notification settings - Fork 922
/
Copy pathcommunity_links.html
34 lines (32 loc) · 1.03 KB
/
community_links.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{ $links := .Site.Params.links -}}
{{ $contribUrl := .Params.contributingUrl | default "docs/contribution-guidelines" -}}
<section class="row td-box td-box--white td-box--height-auto linkbox">
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<h2>{{ T "community_learn" }}</h2>
<p>{{ T "community_using" . }}</p>
{{ with index $links "user" -}}
{{ template "community-links-list" . -}}
{{ end }}
</div>
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
<h2>{{ T "community_develop" }}</h2>
<p>{{ T "community_contribute" . }}</p>
{{ with index $links "developer" -}}
{{ template "community-links-list" . -}}
{{ end }}
<p>
{{ T "community_how_to" . }}
<a href="{{ $contribUrl | relURL }}">{{ T "community_guideline" }}</a>.
</p>
</div>
</section>
{{ define "community-links-list" -}}
<ul>
{{ range . -}}
<li title="{{ .name }}">
<a target="_blank" rel="noopener" href="{{ .url }}"><i class="{{ .icon }}"></i> {{ .name }}</a>:
{{ .desc }}
</li>
{{ end }}
</ul>
{{- end }}