diff --git a/app/content/wissen/klopapier.md b/app/content/wissen/klopapier.md new file mode 100644 index 0000000..e799253 --- /dev/null +++ b/app/content/wissen/klopapier.md @@ -0,0 +1,7 @@ +--- +date: 2020-11-11 +--- + +# Foo + +This is Foo blog post. \ No newline at end of file diff --git a/app/pages/wissen/[slug].vue b/app/pages/wissen/[slug].vue new file mode 100644 index 0000000..22e32e7 --- /dev/null +++ b/app/pages/wissen/[slug].vue @@ -0,0 +1,19 @@ + + + diff --git a/content.config.ts b/content.config.ts new file mode 100644 index 0000000..122431d --- /dev/null +++ b/content.config.ts @@ -0,0 +1,13 @@ +import { defineCollection, defineContentConfig, z } from '@nuxt/content' + +export default defineContentConfig({ + collections: { + wissen: defineCollection({ + type: 'page', + source: 'wissen/*.md', + schema: z.object({ + date: z.string() + }) + }) + } +}) \ No newline at end of file diff --git a/nuxt.config.ts b/nuxt.config.ts index 7aba57a..ad5ca45 100755 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -46,7 +46,8 @@ export default defineNuxtConfig({ 'nuxt-ripple', '@nuxtjs/sitemap', '@nuxtjs/robots', - '@nuxtjs/plausible' + '@nuxtjs/plausible', + '@nuxt/content' ], css : [ diff --git a/package.json b/package.json index 204e6d9..cf8c2b9 100755 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "dependencies": { "@iconify-json/simple-icons": "^1.2.32", "@iconify-json/uil": "^1.2.3", + "@nuxt/content": "^3.5.1", "@nuxt/fonts": "^0.11.3", "@nuxt/icon": "^1.10.3", "@nuxtjs/device": "^3.2.4",