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).
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 themedefault.html
is loaded by default (but could not find that in Jekyll documentation).