Hexo: updated的功能支持

Created on 26 Nov 2013  ·  9Comments  ·  Source: hexojs/hexo

不知道updated目前有什么用。按照字面理解可能是,page应该是根据updated进行排序分页的,
现在是根据date。文章url也是根据date生成的。
就无法实现:
更新了某篇文章之后,此片文章url不变,但是显示的第一页。

question

Most helpful comment

update值如何让它自动生成呢?必须得手动修改吗?

All 9 comments

updated為文章檔案的更新/修改日期

updated is updated/modified date of the post file.

hexi: Add sort by 'updated' · aaa291c · kywk/hexi
這是個以 updated 來排序的 patch, 可在文章內指定 updated 時間, 不一定為檔案更新時間.
需在 _config.yml 裡指定 sort_by: updated

没明白啊,怎么让博文按照最后更新日期排序呢?看三楼没看懂。

感谢 3 楼的补丁,终于可以按更新日期排序了。

回楼上的,你要照着3楼给的补丁,去改你用的 hexo 的源代码。PS:补丁中最后一处修改不要打上去。

感谢楼上,大概明白了。

3楼给的链接打不开了,应该怎么改啊?

3楼链接打得开啊

update值如何让它自动生成呢?必须得手动修改吗?

@HJHL 有些Theme是支持自动生成Updated。比如hexo-theme-indigo

Was this page helpful?
0 / 5 - 0 ratings