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

支持自定义归档方式,目前可支持year和month #1502

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jiangmitiao
Copy link

当博客文章时间跨越比较大时,首页默认的按月归档会导致页面被拉长,因此可以做一个配置支持选择按月归档还是按年归档。

var/Widget/Contents/Post/Date.php Outdated Show resolved Hide resolved
var/Widget/Contents/Post/Date.php Outdated Show resolved Hide resolved
@jiangmitiao
Copy link
Author

jiangmitiao commented Oct 9, 2022

目前还存在一个问题,不知道该怎么解决。General中的updateGeneralSettings方法只会做update,新增的postArchiveType将无法生效。在本地测试时,我是在option表中手动插入了postArchiveType这行数据。

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

Successfully merging this pull request may close these issues.

None yet

2 participants