templatizing archive and blog pages