Placeholders can be used in content type fields or templates. The placeholders allow you to automatically fill in values when creating a new content.

There are known placeholders from Front Matter:

  • {{title}}: Title of the page
  • {{slug}}: Slug of the page
  • {{now}}: Current date formatted with the value defined in frontMatter.taxonomy.dateFormat or ISO string
  • {{year}}: Current year
  • {{month}}: Current month
  • {{day}}: Current day

You can define you own placeholders within the frontMatter.content.placeholders setting.

For instance, you can define a custom permalink placeholder as follows:

To use the permalink placeholder, you need to define the {{permalink}} value in your content type or template.

In the custom placeholders, you can also use the known placeholders from Front Matter, so that they are more dynamic to your content.


Do you want to provide feedback about this page/content?

Provide feedback
Last updated on

Did you spot an issue in our documentation, or want to contribute? Edit this page on Github!

Special thanks to our backers & sponsors