A flexible, multi-language blog module for Nuxt 3, designed to quickly create blog overview and detail pages based on a Directus-powered blog system by GO.WEST.
Install the package using your preferred package manager:
pnpm add @gowest/blog
# or
yarn add @gowest/blog
# or
npm install @gowest/blog
To use the blog module, you need to add it to the modules
section of your nuxt.config.ts
file before the @nuxtjs/i18n
module:
export default defineNuxtConfig({
modules: [
'@gowest/blog',
'@nuxtjs/i18n',
// ...other modules
],
// ...
})
The blog module comes with a set of default options, which you can override in your nuxt.config.ts
file:
export default defineNuxtConfig({
// ...
gowestBlog: {
teamId: "xxxx-xxxx-xxxx-xxxx",
routes: [
{ lang: "de", path: "/de/blog/" },
{ lang: "en", path: "/en/blog/" },
//...
]
},
// ...
})