I just discovered that even though I have the same version of jekyll (3.1.6) as on Github, when there is a custom-variable in a layout like _layout/base.html, in its header:

---
my-custom-variable: blabla
---

<head>
</head>

Usually I would use `` to display that variable, at least since jekyll 3.1.6.

But NO WAY! The css of _include/head.html won’t show in generated files… So I tried to replace layout.variable by page.variable, which is the 2.0 behaviour of Jekyll… and it works!

So there must be a trick somewhere…

See my website locally

bundle exec jekyll serve