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.