Skip to main content

Module archive

Module archive 

Source
Expand description

固定大小的公开归档分页,与首页列表的 50 条上限独立。

Structs§

ArchiveResponse
ListArchivePosts
Serialized arguments for the list_archive_posts server function.
PostsPerYear
Serialized arguments for the posts_per_year server function.
YearCount
某一年发布的篇数。

Constants§

ARCHIVE_PAGE_SIZE

Functions§

fill_years 🔒
补齐首尾之间缺失的年份(篇数为 0),柱状图才不会跳年。
list_archive_posts
posts_per_year
每年发布的篇数,按年份升序;中间没有文章的年份补 0。关于页的柱状图使用, 在服务端聚合并随文章列表缓存一起失效。