refactor templates
don't render sections without headings

(temporary) fix