rewrote file type to include previews frontmatter