You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I'm rather new to Jekyll, it seems that you cannot utilize dynamic variables in front matter since it's utilized for static content.
I did find this random comment that was related 😆 #494 (comment)
My Example
I've been defining i18n content in /_data/en/pages/some_page.yml
I'm then able to pull the content in a template like so and have it pull the current language from the data definitions.
I'm not sure if something like this would be possible since you cannot put dynamic content into the front matter, but it could surely help the situation if we could do something like this instead:
I've been using https://github.com/untra/polyglot as it seems to be the last maintained i18n implementation.
Since I'm rather new to Jekyll, it seems that you cannot utilize dynamic variables in front matter since it's utilized for static content.
I did find this random comment that was related 😆 #494 (comment)
My Example
I've been defining i18n content in
/_data/en/pages/some_page.yml
I'm then able to pull the content in a template like so and have it pull the current language from the data definitions.
Proposal
I'm not sure if something like this would be possible since you cannot put dynamic content into the front matter, but it could surely help the situation if we could do something like this instead:
I'm really hoping something like this would be possible 🤞
The text was updated successfully, but these errors were encountered: