diz-plugin-collection-page-generator

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i diz-plugin-collection-page-generator

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • nju33