Im trying to output front matter variables depending on the current Jekyll environment.
For example, if the current environment is dev
I would like the variable dev
to be displayed:
---
something:
dev: "Some text"
production: "Other text
---
I'm trying to access the variable dev with the following method and I get no result:
{{ page.something.jekyll.environment }}
Is there a better way to do this?