LiveReload script tag doesn’t get injected

Hi,

I’m new to Jekyll. Trying to convert a static site to it and following these instructions. If I jekyll serve --livereload the necessary livereload.js script tag doesn’t get injected into the head. If I insert it manually into _layouts/default.html, LiveReload works as expected but I want the behaviour that I get when using a default theme (e.g., minima), when everything happens automatically.

I’ve gone through minima’s source code but can’t find anything that would make LiveReload work there but fail on my custom layout.

Am I missing something else?

Welp… after spending two more hours debugging this, I found the culprit.

I didn’t have a <head> tag in my layout file.