On my Jekyll-powered website I have an inclusion that does something function-like, but I can\'t figure out how to pass it parameters correctly.
When I use {% incl
{% incl
Enter the variable without quotes or parentheses, like that:
{% include footer.html param="value" variable-param=page.variable %}
In your case:
{% include function.liquid foo=baz.quux %}
It works in my site.
From: https://github.com/jekyll/jekyll/issues/3577#issue-61988857