output is a jinja2 macro now, simplifying code, removing publication pages