aboutsummaryrefslogtreecommitdiff
path: root/_includes/sociallinks.html
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-04-22 23:24:30 +0300
committerValentin Popov <info@valentineus.link>2018-04-22 23:24:30 +0300
commit773ea029df70ee175d48795d6b26034406960d63 (patch)
treec297c80905cc25fda75b6debad6fbff032e6985e /_includes/sociallinks.html
parent0bdf22f2d15ea4b41fd2d5e824ce0d44ec4f718c (diff)
downloadpopov.link-773ea029df70ee175d48795d6b26034406960d63.tar.xz
popov.link-773ea029df70ee175d48795d6b26034406960d63.zip
Social link generator
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_includes/sociallinks.html')
-rw-r--r--_includes/sociallinks.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/_includes/sociallinks.html b/_includes/sociallinks.html
new file mode 100644
index 0000000..0f9cd34
--- /dev/null
+++ b/_includes/sociallinks.html
@@ -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>