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

hexo主题首页文章列表排序问题? #2537

Closed
geekwill opened this issue Apr 27, 2017 · 5 comments
Closed

hexo主题首页文章列表排序问题? #2537

geekwill opened this issue Apr 27, 2017 · 5 comments

Comments

@geekwill
Copy link

geekwill commented Apr 27, 2017

为什么我的主题首页文章列表排序是乱的?文章都有指定date。

文章头部

wechatimg40

主题内的列表循环

wechatimg39

最终效果为什么是乱的,就是没按照文章的date进行倒序排序啊?还需要配置什么吗?官网关于主题的文档真心没多少。
wechatimg41

为什么不是最新的文章在最上边啊,难道还需要自己处理?那该怎么处理啊,用的ejs模板。

@NoahDragon
Copy link
Member

不知道这个是不是和上个版本的一个PR有关#2262,修复将在下个版本中。

同时在生成网站时,最好先清理下cache hexo clean && hexo g

@geekwill
Copy link
Author

我在使用时,习惯性的会先hexo clean的,好像没用的
wechatimg42
以上是我的hexo版本。
@NoahDragon

@NoahDragon
Copy link
Member

我无法重现排序问题,可否分享下出问题的源代码?

@geekwill
Copy link
Author

geekwill commented May 2, 2017

已解决,我重新init项目结构并重新构建主题目录,将其代码拷贝,可以解决,虽然我有改变主题的样式,但是文章列表的循环代码不变,自此我也没发现有什么书写错误的地方。源码https:/geekwill/concise 在这里,你可查看我16年的commit记录,看可否重现排序问题。

@NoahDragon
Copy link
Member

@geekwill 好的,这个issue先关闭了,如果还有问题可重开。

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

No branches or pull requests

2 participants