community_links.html 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{ $links := .Site.Params.links -}}
  2. {{ $contribUrl := .Params.contributingUrl | default "docs/contribution-guidelines" -}}
  3. <section class="row td-box td-box--white td-box--height-auto linkbox">
  4. <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
  5. <h2>{{ T "community_learn" }}</h2>
  6. <p>{{ T "community_using" . }}</p>
  7. {{ with index $links "user" -}}
  8. {{ template "community-links-list" . -}}
  9. {{ end }}
  10. </div>
  11. <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
  12. <h2>{{ T "community_develop" }}</h2>
  13. <p>{{ T "community_contribute" . }}</p>
  14. {{ with index $links "developer" -}}
  15. {{ template "community-links-list" . -}}
  16. {{ end }}
  17. <p>
  18. {{ T "community_how_to" . }}
  19. <a href="{{ $contribUrl | relURL }}">{{ T "community_guideline" }}</a>.
  20. </p>
  21. </div>
  22. </section>
  23. {{ define "community-links-list" -}}
  24. <ul>
  25. {{ range . -}}
  26. <li title="{{ .name }}">
  27. <a target="_blank" rel="noopener" href="{{ .url }}"><i class="{{ .icon }}"></i> {{ .name }}</a>:
  28. {{ .desc }}
  29. </li>
  30. {{ end }}
  31. </ul>
  32. {{- end }}