Welcome to mirror list, hosted at ThFree Co, Russian Federation.

social.html « partials « layouts - github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5a1bd37d3634e3c17f9515aef169683d4e94f67f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{{ $width := mul (len .Site.Params.social) 2 }}
<div class="social-info" style="width: {{ $width }}em;">
  {{- range $key, $val := .Site.Params.social -}} {{ if eq $key "email" }}
  <a class="header-icon" href="mailto:{{- $val.url }}" aria-label="{{ $key }}"
    ><i class="{{ $val.icon }}"></i>
  </a>
  {{ else }}
  <a class="header-icon" href="{{- $val.url }}" aria-label="{{ $key }}"
    ><i class="{{ $val.icon }}"></i>
  </a>
  {{ end }} {{- end -}}
</div>