Can we use shortcodes or variables in Front Matter?

Is there any way to insert a shortcode inside Front Matter of a Post. For example:

+++
title = "{{% section %}} Features"
date = "2018-01-31"
type = "post"
+++

or

+++
title = "{{ .Page.Section }}  Features"
date = "2018-01-31"
type = "post"
+++

I’ve tried, but it doesn’t work.

Thanks!

1 Like

Nope, but you can template archetypes; see some examples in the merge issue. :slight_smile:

2 Likes