When I transitioned my blog over to Blogofile, I quickly found that the basic site template was rather incomplete. It is necessary to do a bit of work to set up things like category and feed lists. Fortunately it is pretty to list out categories and other things from the blogofile object model.

I have put a list of categories in my sidebar. Here's the code:

<section id="categories">
<header>
  <h3>Categories</h3>
</header>
<ul>
% for category, num_posts in bf.config.blog.all_categories:
  <li class="item"><a href="${category.path}">${category}</a> (<a href="${category.path}/feed/index.xml">rss</a>) (${num_posts})</li>
% endfor
</ul>
</section>

Pretty simple, right? The feeds are in there too. Isn't it nice when things just work?