Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft front matter is being ignored? #913

Closed
Hecatron opened this issue May 21, 2023 · 1 comment · Fixed by nuxt/content#2077
Closed

draft front matter is being ignored? #913

Hecatron opened this issue May 21, 2023 · 1 comment · Fixed by nuxt/content#2077

Comments

@Hecatron
Copy link

Hi,
I've noticed in the nuxt content docs it's possible to specify that a page shouldn't be generated if it's marked as draft
https://content.nuxtjs.org/guide/writing/markdown/#front-matter

However if I try and add something like this to the top of the page

---
title: 'Title of the page'
draft: true
---

It still ends up being generated regardless via pnpm generate
Example here
https://github.com/Hecatron-Cad/LinuxCNC.Notes/tree/master/docs
https://github.com/Hecatron-Cad/LinuxCNC.Notes/blob/master/docs/content/1.os/2.armbian/1.notes.md
https://hecatron-cad.github.io/LinuxCNC.Notes/os/armbian/notes

I wonder if I'm missing something in the nuxt.config.ts or if it's something to do with the way I have the paths set

Copy link
Contributor

Tahul commented May 22, 2023

@farnabaz is this expected?

I'm unsure about that feature status in Content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants