Use object.url to get the url for author, category and tags

This commit is contained in:
Kyle Fuller
2012-05-14 18:17:00 +01:00
parent 2e0d1cae62
commit 9c349d82c6
42 changed files with 74 additions and 74 deletions

View File

@@ -37,7 +37,7 @@
{% endfor %}
{% endif %}
{#{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}#}
</ul></nav>
</header><!-- /#banner -->
@@ -50,7 +50,7 @@
<h2>Categories</h2>
<ul>
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/category/{{ cat }}.html">{{ cat }}</a></li>
<li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
{% endfor %}
</ul>
</div>