Skip to content

Unpublish pages / 404 pages / Markdown Drafts #73

Answered by ElMassimo
courcelan asked this question in Q&A
Discussion options

You must be logged in to vote

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 use path: /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.

---
draft: true
---

If you need more control, you can remove it from the generated routes using extendRoutes:

  extendRoutes (routes) {
    return routes.filter(someCondition)
  },

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ElMassimo
Comment options

Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants