peterdesmet / petridish

Jekyll theme for research project websites 🧫
https://peterdesmet.github.io/petridish
MIT License
51 stars 44 forks source link

Use default layout for posts and pages #9

Closed peterdesmet closed 5 years ago

peterdesmet commented 5 years ago

Currently, pages and posts use page.html and this is set in the frontmatter defaults:

https://github.com/peterdesmet/petridish/blob/bfc57cc3dd0434617335ad533af770ffff052d04/_config.yml#L25-L38

If the user has his own frontmatter defaults however (e.g. setting a different permalink for posts), then it completely overwrittes the frontmatter defaults of the theme for that scope (e.g. posts), resulting in no longer using the page layout.

By using the default.html for pages and posts, the user doesn't have to set anything in frontmatter defaults, as it seems that the theme default.html is loaded by default (but could not find that in Jekyll documentation).