Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddupg/hexo-generator-custom-category
Custom category generator for Hexo
https://github.com/ddupg/hexo-generator-custom-category
catetory generator hexo
Last synced: about 1 month ago
JSON representation
Custom category generator for Hexo
- Host: GitHub
- URL: https://github.com/ddupg/hexo-generator-custom-category
- Owner: ddupg
- License: mit
- Created: 2020-01-21T04:05:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T08:58:25.000Z (almost 5 years ago)
- Last Synced: 2024-10-15T09:52:35.073Z (3 months ago)
- Topics: catetory, generator, hexo
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-custom-category
Custom category generator for [Hexo].
## Installation
``` bash
$ npm install hexo-generator-category --save
```## Options
``` yaml
custom_category_generator:
per_page: 10
order_by: -date
layout: [my_layout]
custom_config:
English:
per_page: 0
order_by: +date
layout: category_english
Chinese:
per_page: 5
order_by: -date
layout: [category_chinese, category, index]
```- **per_page**: Default posts displayed per page. (0 = disable pagination)
- **order_by**: Default posts order. (Order by date descending by default)
- **custom_config**: Custom configuration per category. (The children items are the names of categories)
- per_page: Posts displayed per page of the category.
- order_by: Posts order of the category.
- layout: Layout of the category. Could be one or more.## License
MIT
[Hexo]: http://hexo.io/