Blog category list

Posted December 1, 2005 in Code

Ironically, the only time I actaully blog is when I'm hacking at my blog.

I wanted a simple HTML category list for my Pyblosxom blog. I hacked something up quickly, without much regard to maintanability or portability.

        for d in dirs:
                rd = os.path.split(d)[-1]
                html += '   
  • %s
  • ' % (rd, rd) html += ' ' data['categoryList'] = html]]>