@maul-esel's frontmatter defaults work, rebased

Rebased version of #1527.

/cc @maul-esel