URL and name were being displayed incorrectly.

Format in pelicanconf.py is as follow.

===
# Social widget
SOCIAL = (
    ('GitHub', 'https://github.com/<user>'),
)
===
This commit is contained in:
शंतनू
2013-09-14 12:46:52 +05:30
parent a217f4239e
commit 9a9c2a5c86

View File

@@ -43,7 +43,7 @@
<nav class="widget"> <nav class="widget">
<h4>Social</h4> <h4>Social</h4>
<ul> <ul>
{% for url, name in SOCIAL %} {% for name, url in SOCIAL %}
<li><a href="{{ url|e }}">{{ name }}</a></li> <li><a href="{{ url|e }}">{{ name }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>