Update document content or frontmatter