Fixed my terrible compilation issue

Was only a question of correct ordering of 'frontmatter' and 'document'. My bad.