feat(content): add draft support for content collections
This commit introduces a draft system for the 'events' and 'news' collections. A `draft` boolean field has been added to the content schema, and frontend queries are now updated to only fetch and display content where `draft` is `false`. This allows content to be created and saved without being publicly visible, improving the publishing workflow.
This commit is contained in:
@@ -5,12 +5,12 @@ export default defineNuxtConfig({
|
||||
compatibilityDate: "2025-07-15",
|
||||
devtools: { enabled: true },
|
||||
modules: [
|
||||
"@nuxtjs/seo",
|
||||
"@nuxt/ui",
|
||||
"@nuxt/content",
|
||||
"@nuxt/image",
|
||||
"reka-ui/nuxt",
|
||||
"@nuxtjs/robots",
|
||||
"@nuxtjs/seo",
|
||||
"@nuxtjs/sitemap",
|
||||
],
|
||||
css: ["~/assets/css/main.css"],
|
||||
|
||||
Reference in New Issue
Block a user