-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
index_generator失效问题 #4311
Comments
经测试 |
刚刚重新试了一下,确实可以了,之前可能是我的配置问题,加载的时候一直报这个关键字load失败,谢谢了! |
问题解决了就好。可能是之前格式有问题。 |
@stevenjoezhang 抱歉打扰一下 |
如果最近更新了 hexo-generator-index (3.0.0 版本),那么新的排序方式是
第二步是一个稳定的排序算法,因此如果文章都没有设定 sticky,那么会保留第一步中排的顺序 |
您好,https://github.com/hexojs/hexo-generator-index/releases 我只看到有 2.0 的版本 index_generator.order_by | Posts order. Order by descending date (new to old) by default. | -date updated_option controls the updated value when not provided in the front-matter: 这个 3.0 我当时还以为是 现在的问题:我不管设不设置
package 版本
|
您好,是 hexo-generator-index 的 2.0 版本,我之前写错了。
如果还不行的话,可能是由于 Hexo 没有正确读取文章的更新时间而造成的。这一问题可能在使用 Git 管理文章源码时出现: #3235 |
感觉有点奇怪,我尝试了 我确实是使用 git 管理源码的,但是在 3235 中我似乎没有找到非常有用的信息,我有点不太懂,上面显示的更新时间都是正确的,只是排序的结果不对,这跟 git 有关系吗。 我用 hexo init 创建新的项目,使用默认的配置却是正常的,新项目中默认的配置是一样的, 我还是没有找到啥地方有问题,先回退到 hexo 4.2.0 了,这个版本使用正常,打扰您了、 |
新版本Hexo中配置文件配置主页面分页功能
index_generator:
path: ''
per_page: 8
order_by: -date
关键字index_generator:失效,新版本中如何设置主页分页功能?
The text was updated successfully, but these errors were encountered: