Skip to content

feat: 合集功能完善 #589

@Rotten-LKZ

Description

@Rotten-LKZ

Clear and concise description of the problem

  1. 像现在临时 API 一样,可以设定单独的指定文件定义合集标题封面描述之类的内容,之后再定义合集中文章的顺序以便按照顺序显示文章。
  2. 定义合集可以增加一个配置项:是否折叠合集,以便判断在主页以及归档页显示合集文章的方式。个人认为:若折叠合集,则根据最新更新合集内文章确定合集显示位置(最好的设想是主页/所有文章页显示的是最新更新合集内文章的标题、封面等内容,归档页则用的是合集标题);若不折叠合集,合集内的文章就视为正常文章显示在主页以及归档页即可。(可能有更好的类似显示逻辑)

Suggested solution

  1. 更改 Valaxy 中 usePostList 等跟 post 相关代码
  2. 通过运行 CLI 或者在运行前自动根据 collections 文件夹中内容在 posts 文件夹中创建相应文章文件(可以设定为隐藏文件)并指定链接指向 collections

Alternative

No response

Additional context

No response

Validations

  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions