Add ability for article template to handle loops