Update index.php

note that this does require a small change in the Frontmatter class by making the data property public