implementing template tags for post archive