Skip to content

Commit

Permalink
Modified tag listing to only include tags used at least once.
Browse files Browse the repository at this point in the history
Change based on the work of Matteo Crippa:
http://www.matteocrippa.it/2008/9/Empty-categories-fix-for-bloog
  • Loading branch information
Arachnid committed Nov 22, 2008
1 parent 68aaf99 commit ccc4529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions views/default/bloog/base.html
Expand Up @@ -100,8 +100,10 @@ <h3>Categories</h3>
<p class="tags">
{% if blog_tags %}
{% for tag in blog_tags %}
<a href="/tag/{{ tag.name|urlencode }}">{{ tag.name }}</a>
({{ tag.count }})<br />
{% ifnotequal tag.count 0 %}
<a href="/tag/{{ tag.name|urlencode }}">{{ tag.name }}</a>
({{ tag.count }})<br />
{% endifnotequal %}
{% endfor %}
{% else %}
No posts have been tagged yet.
Expand Down

0 comments on commit ccc4529

Please sign in to comment.