Wondering if anyone can chime in: to easily switch layouts between say “landing page with sidebar” vs " landing page no sidebar" is a way to do it to specify type in the front matter of pages, and set up the corresponding templates for that type?
This is probably specific to your theme logic in the layout/partials pages and the root config.toml. In the theme I’m using the quickest way is to change the config.toml [params.widgets] array elements to false or true.
somehow, way back in 2015 when I wrote this, I did figure it out using “type” in frontmatter. I’d forgotten I wrote this, even.
1 Like