0.1.0 • Published 7 years ago

diz-plugin-collection-page-generator v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Collection Page Generator

A Diz plugin that create a list page

XO code style

Install

$ yarn add -D diz-plugin-collection-page-generator
$ npm i -D diz-plugin-collection-page-generator

Usage

  ...,
  plugins: [
    new CollectionPageGenerator({
      target: 'categories',
      pager: 5
    }),
    new CollectionPageGenerator({
      target: 'tags',
      pager: 10
    })
  ],
  ...

Options

  • type(def:'LIST')
    Spwcify the contents type
  • target(def:'')
    Specify the keys to collect in each front matter data
  • pager(def:20)
    Specify how many items to display per page
  • title(def:)
    todo...
  • description(def:)
    todo...

License

MIT