Is there a way to have a variable within a statement in liquid so that something like the following:
{% assign somevar = 'about-us' %}
{{ pages.somevar.content }}
would result in the same output as if you had originally used:
{{ pages.about-us.content }}
{% assign somevar = 'about-us' %}
{{ pages.[somevar].content }}
That works fine for me...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With