0.0.17 • Published 4 years ago

@bageldb/gridsome-pages v0.0.17

Weekly downloads
18
License
ISC
Repository
-
Last release
4 years ago

@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

nameRequiredDefault ValueDetails
friendlyURLnothe _id of the itemset the field in BagelDB that will determine the url of the page
pathyesthe path of the template https://yourdomain.com/{path}/{friendlyURL}
componentyesthe 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,
      },
    },
  ],
};
0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

5 years ago