Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 046da71c4d72129819ccab118df21340ef6ea202 1 parent f43148f
Anders Hofstee authored

Showing 1 changed file with 19 additions and 13 deletions. Show diff stats Hide diff stats

  1. +19 13 templates/blog/includes/filter_panel.html
32 templates/blog/includes/filter_panel.html
... ... @@ -1,4 +1,4 @@
1   -{% load blog_tags i18n %}
  1 +{% load blog_tags keyword_tags i18n %}
2 2
3 3 {% blog_recent_posts 5 as recent_posts %}
4 4 {% if recent_posts %}
@@ -15,9 +15,12 @@
15 15 {% if months %}
16 16 <h3>{% trans "Archive" %}</h3>
17 17 {% for month in months %}
18   -{% ifchanged month.year %}{% if not forloop.first %}</ul>{% endif %}<h4>{{ month.year }}</h4><ul>{% endifchanged %}
19   -<li><a href="{% url blog_post_list_month year=month.date.year month=month.date.month %}"
20   - >{{ month.date|date:"F" }}</a></li>
  18 + {% ifchanged month.date.year %}
  19 + {% if not forloop.first %}</ul>{% endif %}
  20 + <h4>{{ month.date.year }}</h4><ul>
  21 + {% endifchanged %}
  22 + <li><a href="{% url blog_post_list_month year=month.date.year month=month.date.month %}"
  23 + >{{ month.date|date:"F" }}</a> ({{ month.post_count }})</li>
21 24 {% endfor %}
22 25 </ul>
23 26 {% endif %}
@@ -28,33 +31,36 @@
28 31 <ul>
29 32 {% for category in categories %}
30 33 <li><a href="{% url blog_post_list_category category.slug %}"
31   - >{{ category }}</a></li>
  34 + >{{ category }}</a> ({{ category.post_count }})</li>
32 35 {% endfor %}
33 36 </ul>
34 37 {% endif %}
35 38
36   -{% blog_tags as tags %}
  39 +{% keywords_for blog.blogpost as tags %}
37 40 {% if tags %}
38 41 <h3>{% trans "Tags" %}</h3>
39   -<ul class="tags">
  42 +<ul class="tags cloud">
40 43 {% for tag in tags %}
41 44 <li><a href="{% url blog_post_list_tag tag.slug %}"
42   - class="tag-weight-{{ tag.weight }}">{{ tag }}</a></li>
  45 + class="tag-weight-{{ tag.weight }}">{{ tag }}</a> ({{ tag.item_count }})</li>
43 46 {% endfor %}
44 47 </ul>
45 48 {% endif %}
46 49
47 50 {% blog_authors as authors %}
48 51 {% if authors %}
49   -{% if authors.count > 1 %}
50 52 <h3>{% trans "Authors" %}</h3>
  53 +<ul>
51 54 {% for author in authors %}
52   -<a href="{% url blog_post_list_author author.username %}"
53   - >{{ author.get_full_name|default:author.username }}</a>
  55 + <li><a href="{% url blog_post_list_author author.username %}"
  56 + >{{ author.get_full_name|default:author.username }}</a>
  57 + ({{ author.post_count }})</li>
54 58 {% endfor %}
55   -{% endif %}
  59 +</ul>
56 60 {% endif %}
57 61
58 62 <h3>{% trans "Feeds" %}</h3>
59 63 <a href="{% url blog_post_feed "rss" %}">{% trans "RSS" %}</a> /
60   -<a href="{% url blog_post_feed "atom" %}">{% trans "Atom" %}</a>
  64 +<a href="{% url blog_post_feed "atom" %}">{% trans "Atom" %}</a>
  65 +
  66 +

0 comments on commit 046da71

Please sign in to comment.
Something went wrong with that request. Please try again.