I'm trying to publish my own website on GitHub Pages. I want to include some repeating parts of code (header) in many files so that I don't always have to copy-paste them. I wanted to use the include functionality offered by Jekyll:
{% include example.html %}
I've put the file I want to include in the _includes directory, however, for some reason it seems to work only if I use a layout in the main file. Am I doing something wrong? If not, is it possible to use Jekyll includes without a layout? (Because I have set all my html files to work without it)