@gowest/blog
TypeScript icon, indicating that this package has built-in type declarations

1.7.0 • Public • Published

@gowest/blog – Nuxt 3 Blog Module

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.

Installation

Install the package using your preferred package manager:

pnpm add @gowest/blog
# or
yarn add @gowest/blog
# or
npm install @gowest/blog

Usage

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
  ],
  // ...
})

Configuration

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/" },
      //...
    ]
  },
  // ...
})

Readme

Keywords

none

Package Sidebar

Install

npm i @gowest/blog

Weekly Downloads

9

Version

1.7.0

License

ISC

Unpacked Size

74.6 kB

Total Files

37

Last publish

Collaborators

  • gowest-user
  • srijan-katuwal