I started to make my blog with jekyll and github pages.
I was doing fine with the basic theme, But I wanted to apply the side bar property, so I downloaded the theme which has the sidebar, from https://idratherbewriting.com/documentation-theme-jekyll/
So I downloaded the proejct and overrided. I don't know much about how this works, but the strangest thing is that in index.md file
if I put
---
layout:home
sidebar:mydoc_sidebar
----
it happens to show the basic theme layout and the posts as it should be, but if I change the layout to something else which is inside the _layout folder such as post, default, the posts disappear and I have no idea why Jekyll does this.
Even when I erase the layout, it returns empty screen so I'm sure it's doing something with the home layout but I couldn't find anywhere how the home layout is rendered.
In _config.yml, we can see that you are using (theme: minima
) the minima gem based theme (documentation). That means that by default, all your _includes, _layouts and assets are hidden somewhere on you computer. You can use the bundle show minima
command to find out where they are stored.
As home layout exists in minima theme, is it used.
If you want to use your own home layout you can copy it from minima to your _layouts folder and modify it to suits your needs.
cd your/root
cp `echo "$(bundle show minima)/_layouts/home.html" _layouts/home.html`
If you want to be sure not to use hidden resources, you can delete the theme: minima
directive from your _config.yml file.