add YAML front matter to index file