aboutsummaryrefslogtreecommitdiff
path: root/_pages/index.html
diff options
context:
space:
mode:
authorValentin Popov <valentineus@gmail.com>2018-04-11 17:50:34 +0300
committerValentin Popov <valentineus@gmail.com>2018-04-11 17:50:34 +0300
commite9b71646817371a220d8e8368224a473e45aa427 (patch)
treea8c6b4fb1dcf9e636de488427754939689d2818c /_pages/index.html
parent7ad1ac47915233542ea2fae54064d921b85bd3eb (diff)
downloadpopov.link-e9b71646817371a220d8e8368224a473e45aa427.tar.xz
popov.link-e9b71646817371a220d8e8368224a473e45aa427.zip
Fixed the generation of links on the homepage
Diffstat (limited to '_pages/index.html')
-rw-r--r--_pages/index.html8
1 files changed, 3 insertions, 5 deletions
diff --git a/_pages/index.html b/_pages/index.html
index 3b95333..c610388 100644
--- a/_pages/index.html
+++ b/_pages/index.html
@@ -9,11 +9,9 @@ layout: default
<h2>{{ site.description | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}</h2>
<ul>
{% for item in site.social_links %}
- <li>
- <a href="{{ item[1] | strip_newlines | strip_html | strip | uri_escape }}" target="_blank">
- {{ item[0] | strip_newlines | strip_html | strip | normalize_whitespace | smartify }}
- </a>
- </li>
+ {% assign title = item[0] | strip_newlines | strip_html | strip | normalize_whitespace | smartify %}
+ {% assign link = item[1] | strip_newlines | strip_html | strip | uri_escape %}
+ <li><a href="{{ link }}" target="_blank">{{ title }}</a></li>
{% endfor %}
</ul>
</div>