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

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Mann <git@mail.saschamann.eu>2019-01-14 00:52:57 +0300
committerSascha Mann <git@mail.saschamann.eu>2019-01-14 00:52:57 +0300
commit7584ca2c4f30db8fd9d1aa59b11f25efff0fbce8 (patch)
tree173743e769b271d2f7a6b61d68d53f56082f687e /layouts
parent819c0588650c23a85e6d1b10fc1a47c2db72a5ec (diff)
Add HTML attributes to social links
* Insert arbitrary HTML attributes to social links via config.toml (fixes #121)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/home/social.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/home/social.html b/layouts/partials/home/social.html
index 5750b6f..34a97f1 100644
--- a/layouts/partials/home/social.html
+++ b/layouts/partials/home/social.html
@@ -1,6 +1,6 @@
<div class="social-icons">
{{ range .Site.Params.social }}
- <a href="{{ .url }}">
+ <a href="{{ .url }}" {{ .html_attributes | safeHTMLAttr }}>
<i class="{{ .icon_pack}} fa-{{ .icon}}"></i>
</a>
{{ end }}