Move Jinja2 templates to a common layout with inherited pages.