Explorar o código

Fix bug: href attribute of social profile links is incorrect

Fix #116
Talha Mansoor %!s(int64=11) %!d(string=hai) anos
pai
achega
21159d83d1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      templates/_includes/social_links.html

+ 1 - 1
templates/_includes/social_links.html

@@ -5,7 +5,6 @@
 {% set f_entry = [] %}
     {%for item in entry %}
         {# first is for name #}
-            {% if f_entry.append(item) %}{% endif %}
         {% if loop.first %}
             {% set link_title = 'My ' + item + ' Profile' %}
             {% set link_icon = item.lower() %}
@@ -23,6 +22,7 @@
             {% if f_entry.insert(2, url) %}{% endif %}
         {% elif loop.index0 == 2 %}
             {% set link_icon = item.lower() %}
+            {% if f_entry.pop(1) %}{% endif %}
             {% if f_entry.insert(1, link_icon) %}{% endif %}
         {% endif %}
     {% endfor %}