hexo-generator-index icon indicating copy to clipboard operation
hexo-generator-index copied to clipboard

`index_generator.pagination_dir` doesn't take effect

Open uiolee opened this issue 10 months ago • 0 comments

Check List

  • [X] I have already read README.
  • [X] I have already searched existing issues and they are not help to me.
  • [X] I examined error or warning messages and it's difficult to solve.
  • [X] I am using the latest version of this repository.
  • [X] I am using the latest version of Hexo.
  • [X] My Node.js is matched the required version.

Describe the bug

https://github.com/hexojs/hexo-generator-index/blob/f8ef61c1c8d2006d132d536657f0dee1b38d632a/README.md?plain=1#L21-L27

according to README, pagination_dir can be set by index_generator.pagination_dir. But from the code, index_generator.pagination_dir is invalid.

https://github.com/hexojs/hexo-generator-index/blob/f8ef61c1c8d2006d132d536657f0dee1b38d632a/lib/generator.js#L11

Expected behavior

Code and documentation should match, avoid misleading users.

How to reproduce

Screenshots

No response

Environment information

No response

Additional context

No response

uiolee avatar Apr 18 '24 16:04 uiolee