Skip to content

feat(ArchivePanel): 支持控制归档页自动折叠默认行为#404

Merged
CuteLeaf merged 2 commits into
CuteLeaf:masterfrom
QingFeng-awa:feat/fold-function-switch
Jun 12, 2026
Merged

feat(ArchivePanel): 支持控制归档页自动折叠默认行为#404
CuteLeaf merged 2 commits into
CuteLeaf:masterfrom
QingFeng-awa:feat/fold-function-switch

Conversation

@QingFeng-awa

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Changes

新增配置 SiteConfig.foldArticle,用于控制文章归档页中非最新年份文章是否自动折叠。
默认为 true,与当前行为一致。

How To Test

src\config\siteConfig.ts 开关 foldArticle 配置并访问 /archive/ 页查看效果。

Additional Notes

博客可能一年到头写不了几篇文章,文章总数不多(比如我),自动折叠了可能不方便;或者说我就是希望不折叠,能出个配置控制一下感觉还是有用的。

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for demo-firefly ready!

Name Link
🔨 Latest commit c371f0a
🔍 Latest deploy log https://app.netlify.com/projects/demo-firefly/deploys/6a2b8353e2b5230008c0d34c
😎 Deploy Preview https://deploy-preview-404--demo-firefly.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@QingFeng-awa QingFeng-awa changed the title feat(ArchivePanel): 支持控制折叠默认行为 feat(ArchivePanel): 支持控制归档页自动折叠默认行为 Jun 12, 2026
@CuteLeaf

Copy link
Copy Markdown
Owner

配置注释最好加上描述是归档页里的

@CuteLeaf CuteLeaf merged commit 1ebe90e into CuteLeaf:master Jun 12, 2026
9 checks passed
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.

2 participants