hexo-pagination icon indicating copy to clipboard operation
hexo-pagination copied to clipboard

Generates the first index.html without blog directory

Open kiarafbickers opened this issue 7 years ago • 1 comments

When you modify the root _config.yml file to include:

index_generator:
  path: ''
  per_page: 10
  order_by: -date

It creates blog pages without the first numbered index.

INFO  Generated: index.html
INFO  Generated: blog/2/index.html
INFO  Generated: blog/3/index.html
INFO  Generated: blog/4/index.html
INFO  Generated: blog/5/index.html

The first blog page should be blog/1/index.html instead of index.html.

kiarafbickers avatar May 30 '18 05:05 kiarafbickers

See https://github.com/hexojs/hexo-pagination/blob/b55476aba501102b6f7e86b61713b125962d8b39/lib/pagination.js#L27

stevenjoezhang avatar Aug 21 '20 08:08 stevenjoezhang