Update index.php

note that this does require a small change in the Frontmatter class by making the data property public
Merge pull request #1 from Blaxus/patch-1

Update index.php