rewrite frontmatter to include new layout