Collection Page Generator
A Diz plugin that create a list page
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