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

@@ -30,7 +30,7 @@
<h2>Tags</h2>
<ul class="tag">
{% for tag in tag_cloud|sort %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li>
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</div>
@@ -43,4 +43,4 @@
$("#jquerytabs").tabs();
});
</script>
{% endblock %}
{% endblock %}

View File

@@ -1,12 +1,12 @@
<div class="meta wrapper">
<time datetime="{{ article.date.isoformat() }}" pubdate>{{ article.locale_date }}</time>
<ul class="tag clearfix">
<li><a href="{{ SITEURL }}/category/{{ article.category }}.html">{{ article.category }}</a></li>
<li><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></li>
{% if article.tags %}
{% for tag in article.tags %}
<li><a href="{{ SITEURL }}/tag/{{ tag }}.html">{{ tag }}</a></li>
<li><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a></li>
{% endfor %}
{% endif %}
</ul>
{% if PDF_PROCESSOR %}<p><a href="{{ SITEURL }}/pdf/{{ article.slug }}.pdf">Download the .pdf</a></p>{% endif %}
</div>
</div>

View File

@@ -8,10 +8,10 @@
<ul class="tag">
{% for tag in tag_cloud %}
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/tag/{{ tag.0 }}.html">{{ tag.0 }}</a></li>
<li class="tag-{{ tag.1 }}"><a href="{{ SITEURL }}/{{ tag.0.url }}">{{ tag.0 }}</a></li>
{% endfor %}
</ul>
</div>
</div>
{% endblock %}
{% endblock %}