categories - Builds a list of categories....


Walks through your blog root figuring out all the categories you have and how many entries are in each category. It generates html with this information and stores it in the $(categorylinks) variable which you can use in your head or foot templates.


This plugin comes with douglas. To install, do the following:

  1. Add douglas.plugins.pycategories to the load_plugins list in your file.


There is no configuration.


Categories plugin provides an HTML version of the categories in a list form. You can use it in your template like this:

{{ categories.as_list()|safe }}

Alternatively, you can build the categories HTML yourself:

{% for cat, count in categories.categorydata %}
{% endfor %}


Plugin is distributed under license: MIT