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

@@ -82,7 +82,7 @@
{% endif %}
{% for cat, null in categories %}
<li {% if cat == category %}class="active"{% endif %}>
<a href="{{ SITEURL }}/category/{{ cat }}.html">
<a href="{{ SITEURL }}/{{ cat.url }}">
<i class="icon-folder-open icon-large"></i>{{ cat }}
</a>
</li>

View File

@@ -19,7 +19,7 @@
<li class="nav-header"><h4><i class="icon-folder-close icon-large"></i>Categories</h4></li>
{% for cat, null in categories %}
<li>
<a href="{{ SITEURL }}/category/{{ cat }}.html">
<a href="{{ SITEURL }}/{{ cat.url }}">
<i class="icon-folder-open icon-large"></i>{{ cat }}
</a>
</li>
@@ -28,7 +28,7 @@
<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
<i class="icon-tag icon-large"></i>{{ tag.0 }}
</a>
</li>
@@ -40,4 +40,4 @@
{% if SIDEBAR_CUSTOM %}
{{ SIDEBAR_CUSTOM }}
{% endif %}
</ul>
</ul>

View File

@@ -4,10 +4,10 @@
<li class="nav-header"><h4><i class="icon-tags icon-large"></i>Tags</h4></li>
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}">
<a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">
<a href="{{ SITEURL }}/{{ tag.0.url }}">
<i class="icon-tag icon-large"></i>{{ tag.0 }}
</a>
</li>
{% endfor %}
</ul>
{% endblock %}
{% endblock %}