# Calling variable within variable inside of YAML front matter block

**URL:** <https://talk.jekyllrb.com/t/calling-variable-within-variable-inside-of-yaml-front-matter-block/5244>\
**Category:** Help\
**Created:** [November 19, 2020, 8:26am UTC](https://talk.jekyllrb.com/t/calling-variable-within-variable-inside-of-yaml-front-matter-block/5244 "2020-11-19T08:26:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [November 19, 2020, 1:04pm UTC](https://talk.jekyllrb.com/t/calling-variable-within-variable-inside-of-yaml-front-matter-block/5244/2 "2020-11-19T13:04:12Z")

</div>

Looks like a duplicate of

> [@How do you make Jekyll execute Liquid variables in front matter](https://talk.jekyllrb.com/t/how-do-you-make-jekyll-execute-liquid-variables-in-front-matter/1638):
>
> Hi, I’m trying to call Liquid values into my layout/include front matter. But usually Jekyll outputs it raw without executing it. Say I got --- title: Welcome to {{ site.title }} --- I’d expect the output to be “Welcome to My Website”; instead I get “Welcome to {{ site.title }}”, meaning the Liquid tag isn’t executed. Is there a way to get this done? Thanks.

Liquid is not evaluated in YAML frontmatter. You can try `flatify` plugin covered in the thread. Or you going to have have to duplicate your text in two values.

If it was some other field and not permalink, I would have said move the logic to a layout which can take a field on the page and rework it into html output

---

_[View the full topic](https://talk.jekyllrb.com/t/calling-variable-within-variable-inside-of-yaml-front-matter-block/5244)._
