YuyingWu / hexo-generator-index-plus

Index generator plus for Hexo, including new order attributes like top and updateDate.
MIT License
13 stars 1 forks source link

TypeError: Cannot read property 'pagination_dir' of undefined #2

Open SnailDove opened 3 years ago

SnailDove commented 3 years ago

反馈一下问题:版本号也在下面了 TypeError: Cannot read property 'pagination_dir' of undefined at Hexo.module.exports (/Users/brt/Documents/gitblog/snaildove.github.io/node_modules/_hexo-generator-index-plus@1.0.0@hexo-generator-index-plus/lib/generator.js:9:51)

SnailDove commented 3 years ago

已经解决 您在npm官网设置提示有误,但是github提示正确,可以了 这是您在npm官网写的:

index_generator:
  path: ''
  per_page: 10

然而在本仓库底下你又是这样介绍的:

index_generator_plus:
  path: ''
  per_page: 10
tomyu168 commented 2 years ago

已经解决 您在npm官网设置提示有误,但是github提示正确,可以了 这是您在npm官网写的:

index_generator:
  path: ''
  per_page: 10

然而在本仓库底下你又是这样介绍的:

index_generator_plus:
  path: ''
  per_page: 10

我一开始也碰到这个问题,config改好了,没有问题了。问题是这个插件似乎没用,在front-matter里面修改updateDate或者top,并没有作用。hexo g显示对这两个参数的添加修改文件本身没有变化,