1.0.0 • Published 3 years ago
hexo-generator-page
Licence
MIT
Version
1.0.0
Deps
1
Size
6 kB
Vulns
0
Weekly
0
hexo-generator-page
Page generator for Hexo.
It generates an archive of pages on your page, according to the page layout of your theme.
Installation
$ npm install hexo-generator-page --save
Options
Add or modify the following section to your root _config.yml file
index_generator:
path: ''
per_page: 10
order_by: -date
pagination_dir: page
- path: Root path for your blog's index page.
- default: ""
- per_page: Posts displayed per page.
- default:
config.per_pageas specified in the official Hexo docs (if present), otherwise10 0disables pagination
- default:
- order_by: Posts order.
- default: date descending
- pagination_dir: URL format.
- default: 'page'
awesome-pagemakes the URL ends with 'awesome-page/<page number>' for second page and beyond.
Usage
The sticky parameter in the post Front-matter will be used to pin the post to the top of the index page. Higher sticky means that it will be ranked first.
---
title: Hello World
date: 2013/7/13 20:46:25
sticky: 100
---
Note
If your theme define a non-archive index layout (e.g. About Me page), this plugin would follow that layout instead and not generate an archive. In that case, use hexo-generator-archive to generate an archive according to the archive layout.
License
MIT