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

github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/social.html')
-rw-r--r--layouts/partials/social.html12
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>