-
Is there a way to force a page to not be published? Such as in Also, is there a way to set up a 404 page? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Cobey! For setting up a 404 page, you can create a Service providers such as Netlify and Cloudflare Pages will pick it up automatically and use it for unresolved html requests. To "unpublish" a page, you can use the Drafts feature. ---
draft: true
--- If you need more control, you can remove it from the generated routes using extendRoutes (routes) {
return routes.filter(someCondition)
}, |
Beta Was this translation helpful? Give feedback.
Hi Cobey!
For setting up a 404 page, you can create a
404
page with any of the supported extensions (md
,mdx
,vue
,html
), or usepath: /404.html
in the frontmatter.Service providers such as Netlify and Cloudflare Pages will pick it up automatically and use it for unresolved html requests.
To "unpublish" a page, you can use the Drafts feature.
If you need more control, you can remove it from the generated routes using
extendRoutes
: