diff options
Diffstat (limited to 'layouts/partials/social.html')
-rw-r--r-- | layouts/partials/social.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/social.html b/layouts/partials/social.html new file mode 100644 index 0000000..5a1bd37 --- /dev/null +++ b/layouts/partials/social.html @@ -0,0 +1,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> |