Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed invalid blog_tags error per https://groups.google.com/group/mez…

  • Loading branch information...
commit 046da71c4d72129819ccab118df21340ef6ea202 1 parent f43148f
Anders Hofstee authored
Showing with 19 additions and 13 deletions.
  1. +19 −13 templates/blog/includes/filter_panel.html
32 templates/blog/includes/filter_panel.html
View
@@ -1,4 +1,4 @@
-{% load blog_tags i18n %}
+{% load blog_tags keyword_tags i18n %}
{% blog_recent_posts 5 as recent_posts %}
{% if recent_posts %}
@@ -15,9 +15,12 @@
{% if months %}
<h3>{% trans "Archive" %}</h3>
{% for month in months %}
-{% ifchanged month.year %}{% if not forloop.first %}</ul>{% endif %}<h4>{{ month.year }}</h4><ul>{% endifchanged %}
-<li><a href="{% url blog_post_list_month year=month.date.year month=month.date.month %}"
- >{{ month.date|date:"F" }}</a></li>
+ {% ifchanged month.date.year %}
+ {% if not forloop.first %}</ul>{% endif %}
+ <h4>{{ month.date.year }}</h4><ul>
+ {% endifchanged %}
+ <li><a href="{% url blog_post_list_month year=month.date.year month=month.date.month %}"
+ >{{ month.date|date:"F" }}</a> ({{ month.post_count }})</li>
{% endfor %}
</ul>
{% endif %}
@@ -28,33 +31,36 @@
<ul>
{% for category in categories %}
<li><a href="{% url blog_post_list_category category.slug %}"
- >{{ category }}</a></li>
+ >{{ category }}</a> ({{ category.post_count }})</li>
{% endfor %}
</ul>
{% endif %}
-{% blog_tags as tags %}
+{% keywords_for blog.blogpost as tags %}
{% if tags %}
<h3>{% trans "Tags" %}</h3>
-<ul class="tags">
+<ul class="tags cloud">
{% for tag in tags %}
<li><a href="{% url blog_post_list_tag tag.slug %}"
- class="tag-weight-{{ tag.weight }}">{{ tag }}</a></li>
+ class="tag-weight-{{ tag.weight }}">{{ tag }}</a> ({{ tag.item_count }})</li>
{% endfor %}
</ul>
{% endif %}
{% blog_authors as authors %}
{% if authors %}
-{% if authors.count > 1 %}
<h3>{% trans "Authors" %}</h3>
+<ul>
{% for author in authors %}
-<a href="{% url blog_post_list_author author.username %}"
- >{{ author.get_full_name|default:author.username }}</a>
+ <li><a href="{% url blog_post_list_author author.username %}"
+ >{{ author.get_full_name|default:author.username }}</a>
+ ({{ author.post_count }})</li>
{% endfor %}
-{% endif %}
+</ul>
{% endif %}
<h3>{% trans "Feeds" %}</h3>
<a href="{% url blog_post_feed "rss" %}">{% trans "RSS" %}</a> /
-<a href="{% url blog_post_feed "atom" %}">{% trans "Atom" %}</a>
+<a href="{% url blog_post_feed "atom" %}">{% trans "Atom" %}</a>
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.