Menu icon Foundation
Data Variables to set Fenced Variables?

On a page, something like this works:

 

<h1>
  {{ globals.subtitle }}
</h1>

 

But this doesn't seem to:

---
title: {{ globals.subtitle }}
---
<h1>
  {{ title }}
</h1>

 

Is there a way to set a fenced variable using a data source?

Thanks very much!

datafencesvariables

On a page, something like this works:

 

<h1>
  {{ globals.subtitle }}
</h1>

 

But this doesn't seem to:

---
title: {{ globals.subtitle }}
---
<h1>
  {{ title }}
</h1>

 

Is there a way to set a fenced variable using a data source?

Thanks very much!

Christopher Werby 10 months ago

I found something else about this on the Panini issues list.  Apparently, the answer is no.  One cannot use variables from a data source in the fenced frontmatter.