I am writing a blog application as a part of a larger website. I want to have a main (static) nav bar for the site navigation, but I want to have a sub nav that allows the user to filter the blog posts by other criteria when viewing the blog.
Something like
Latest | Popular | Category | Author | Date | Tag
|-> News | Dave | Year | X
|-> Django | Peter | Month| Y
|-> etc. | etc. | etc. | etc.
where the 2nd level of the nav is automatically generated from the categorie, tag, user etc.
I know I could pass the model objects as a part of the context in the views/generic views, but this seems to be a bad option, as I'd be repeating myself for every view in the blog application. Surely there is some easier way of doing this?