sample implementation of frontmatter in pages
refactored to make more reliable
Merge branch 'feature/frontmatter_support' into develop