Closed Seraphli closed 7 years ago
@tommy351 is the only person who maintain the npm packages.
I got the same problem, as I am the collaborator of hexo-theme-material.
@neoFelhz Have you tried the 3.3.1 version? It should be fixed. https://github.com/hexojs/hexo/pull/2262
I've already updated to hexo 3.3.1, but the problem hasn't solved yet..
@neoFelhz I believe this issue is introduced by the #2262, because we have the different perspective of previous
and next
on the time direction.
New<--------------------------------->Old
Next<--|-->Prev `posts.sort('date')`
Prev<--|-->Next `posts.sort('-date')`
@Seraphli this is not a bug. The code has existed since Hexo 2.0.
@NoahDragon There is a bug in previous package. Clearly there is a different between the repository and npm package. Since you have fix it two weeks ago, the npm package match the repo now in hexo@3.3.1.
@Seraphli Thanks for the clarification. I will close this issue for now. Feel free to reopen if the issue still persist.
Environment Info
Node version(
node -v
)Plugin version(
npm ls --depth 0
)For BUG
In the npm install version: File: hexo/lib/plugins/generator/post.js
Line 2,
var posts = locals.posts.sort('-date').toArray();
, is wrong, which will generator a reversed list. I try to usenpm update
ornpm update -g
, but the bug didn't disappear. So I think it is the package error. And I check other's website. They are having the same problem