Explorar el Código

Fix bug: href attribute of social profile links is incorrect

Fix #116
Talha Mansoor hace 11 años
padre
commit
21159d83d1
Se han modificado 1 ficheros con 1 adiciones y 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 %}