@bageldb/gridsome-pages

0.0.17 • Public • Published

@bageldb/gridsome-pages

BagelDB Pages for Gridsome. This package is under development and may the API might change without warning.

Install

  • npm install @bageldb/gridsome-pages

Usage

The plugin relies on @bageldb/gridsome-source, meaning the source plugin must be installed for this plugin to work. The plugin accepts one argument named collections. the collection

name Required Default Value Details
friendlyURL no the _id of the item set the field in BagelDB that will determine the url of the page
path yes the path of the template https://yourdomain.com/{path}/{friendlyURL}
component yes the name of the vue component in the template folder
const collections = {
  name: "blog", // id of the collection
  template: {
    friendlyURL: "slug", // the name of the field that will be used as a slug - if this
    path: "blog",
    component: "blog",
  },
};

module.exports = {
  plugins: [
    {
      use: "@bageldb/gridsome-pages",
      options: {
        collections: collections,
      },
    },
  ],
};

Readme

Keywords

Package Sidebar

Install

npm i @bageldb/gridsome-pages

Weekly Downloads

2

Version

0.0.17

License

ISC

Unpacked Size

2.85 kB

Total Files

4

Last publish

Collaborators

  • nallon
  • natanelyoung
  • bchalk