Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generates the first index.html without blog directory #37

Closed
kiarafbickers opened this issue May 30, 2018 · 1 comment · Fixed by #114
Closed

Generates the first index.html without blog directory #37

kiarafbickers opened this issue May 30, 2018 · 1 comment · Fixed by #114

Comments

@kiarafbickers
Copy link

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.

@stevenjoezhang stevenjoezhang transferred this issue from hexojs/hexo-generator-index Aug 21, 2020
@stevenjoezhang
Copy link
Member

See

const url = i > 1 ? base + format(_format, i) : base;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants