Backpack Site Builder
Optional Guides
Unlisted Pages

Unlisted pages concept

We have this concept to allow having pages filtered out of menus and blogs for example.

All unlisted pages can be added to /u/ Unlisted folder in Storyblok.

You can easily remove these pages by using an ignoreRegex array and checking if slug is ignored by it:


_10
import { isSlugIgnored } from '@/lib/storyblok/storyblok-pages';
_10
_10
isSlugIgnored(slug ?? '')
_10
// if you have a custom array of filters you can pass it as second argument
_10
isSlugIgnored(slug ?? '', [/u\//])