Passing parameters to inclusion in Liquid templates
There are two ways to achieve this. I have tested both approaches against the github-pages version of Jekyll. Using Capture Assuming you are referencing {{ foo }} in the code of your include, you need to assign a value to foo before calling the include. Such as: {% capture foo %}{{ baz.quux }}{% endcapture %} … Read more