I have been playing around with Jekyll for a couple of weeks now and I am trying to create a default style for each of my blog posts, but I'm not exactly sure where and how it's supposed to be done. My main index page works fine in terms of styling but my posts have no CSS being passed to them whatsoever despite trying various methods.
Is the CSS for blog posts supposed to be written in _layouts/default.html
or _layouts/posts.html
, and do I have to specify which stylesheets I want to use in the YAML, by using {% include ...%}
, or by writing
{% if page.style %}
<link rel="stylesheet" href="{{ page.style }}">
{% endif %}
I wasn't able to find information that gave a clear cut answer.