Anyway to inject variables into frontmatter?

Hi I’ve researched this topic and it doesn’t seem like what I want to do is possible.

I’m trying to use liquid variables in the front matter.
I’ve tried a few sites to get around this issue – mostly


https://fettblog.eu/snippets/jekyll/liquid-in-frontmatter/

All these sites are a couple of years old and I can’t seem to make them work either.
Are there any solutions?