added Django 1.5 url syntax to macros plugin; added condition to avoid generating empty lists for each child in article_list macro