As a workaround to fully hide it for some pages you can add the following combination of space-style
and pageDecoration
frontmatter:
Add style that allows to hide frontmatter on pages with css class no-frontmatter
:
```space-style
.no-frontmatter .sb-frontmatter {
display: none;
}
```
Then add cssClasses
decoration to the pages where you want to hide it e.g. using frontmatter:
---
pageDecoration:
cssClasses:
- no-frontmatter
---
I use it myself for hiding it on prefixed pages, could probably also be done using object decorations for all pages with prefixes. Changing the frontmatter again requires commenting the style so it is really only a workaround and a proper solution would be preferred.