0.0.3 • Published 5 years ago
nuxt-navi v0.0.3
Nuxt Navi
Nuxt.js module for building an Array of navigation routes
Overview
This modules takes a YAML file that sets an array of routes and then adds it to the Store.
The only required property for each route is title
. For each route, if no path
property is set then nuxt-navi
automically slugifies that title.
Setup
Add
nuxt-navi
dependency to your projectyarn add nuxt-navi # or npm install nuxt-navi
Add
nuxt-navi
to thebuildModules
section ofnuxt.config.js
if you are using Nuxt v2.9 or later. Otherwise, use themodules
section.{ modules: [ // Simple usage "nuxt-navi", // With options [ "nuxt-navi", { /* module options */ } ] ]; }
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
License
Copyright (c) David Royer droyer01@gmail.com