Social link generator

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2018-04-23 00:24:30 +04:00
parent 0bdf22f2d1
commit 773ea029df
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3

View File

@ -0,0 +1,9 @@
<p class="social-links">
{% for item in site.social_links %}
<a href="{{ item[1] | strip_newlines | strip_html | strip | normalize_whitespace | uri_escape }}">
{{ item[0] | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize }}
</a>
<!-- Separation trait -->
{% unless forloop.last %}|{% endunless %}
{% endfor %}
</p>