I'm working on a Jekyll site with GitHub Pages and have found that {% include myinclude.html %}
liquid works just fine inside _includes and _layout files. However, when adding elements to the _config.yml such as author : myusername
and attempting to use them either in the _layouts/default.html
or _includes/myinclude.html
as {{ site.author }}
, the resulting text is just blank. To note, these changes are not committed or pushed and I'm using a local jekyll instance installed on the Linux Subsystem for Windows.
Outside of _includes and _layout in my actual pages the site variables work just fine. Why would the site variables not be displayed? At the moment I have to place the actual values back into the page.