Draft post #4681
loctran016
started this conversation in
Ideas
Draft post
#4681
Replies: 1 comment 1 reply
-
I believe this could be done with a simple hook function: export default {
// ...
onInitialized: (app) => {
if (app.env.isBuild) {
app.pages = app.pages.filter(({ frontmatter }) => frontmatter.draft !== true )
}
},
}; I do not think this is worthy to have such a feature built-in in my theme, or to publish it as a official plugin. Can you list its support coverage in other documentation tools? If this is widely supported, then implementing it as a core feature might be expected. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
Describe the feature
Will only allow this post(md file) only be viewed (or built) in DEV mode only. Even nuxt-content has this feature built-in
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions