Access the data inside the .md file

For example i have a markdown file with the following content:

---
layout: post
title: This is heading
---

Now, how can I use this title inside the markdown file itself.

As part of the page object.

{{ page.title }}
1 Like