File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -10,32 +10,32 @@ It generates an archive of posts on your homepage, according to the `index` or `
10
10
11
11
## Installation
12
12
13
- ``` bash
14
- $ npm install hexo-generator-index --save
13
+ ``` bash
14
+ npm install hexo-generator-index --save
15
15
```
16
16
17
17
## Options
18
18
19
- Add or modify the following section to your root _ config.yml file
19
+ Add or modify the following section to your root ` _config.yml ` file.
20
20
21
- ``` yaml
21
+ ``` yaml
22
22
index_generator :
23
- path : ' '
23
+ path : " "
24
24
per_page : 10
25
25
order_by : -date
26
26
pagination_dir : page
27
27
` ` `
28
28
29
- - **path**: Root path for your blog's index page.
30
- - default: ""
29
+ - **path**: Root path for your blog's index page.
30
+ - default: ` " " `
31
31
- **per_page**: Posts displayed per page.
32
32
- default: [` config.per_page`](https://hexo.io/docs/configuration.html#Pagination) as specified in the official Hexo docs (if present), otherwise `10`
33
- - ` 0` disables pagination
34
- - **order_by**: Posts order.
35
- - default : date descending
33
+ - ` 0` disables pagination.
34
+ - **order_by**: Posts order.
35
+ - default : ` - date` (date descending)
36
36
- **pagination_dir**: URL format.
37
- - default : ' page'
38
- - ` awesome-page` makes the URL ends with ' awesome-page/<page number>' for second page and beyond.
37
+ - default : ` page`
38
+ - e.g. set `awesome-page` makes the URL ends with ` awesome-page/<page number>` for second page and beyond.
39
39
40
40
# # Usage
41
41
You can’t perform that action at this time.
0 commit comments