Merge pull request 'fix: define missing sortOptions in page-display schema' (#30) from worktree-fix-sortoptions into main

Reviewed-on: CYL/wordpress-theme-aksrt#30
This commit is contained in:
2026-07-10 21:37:07 +08:00
@@ -3,6 +3,18 @@
* Each key corresponds to a sub-page under the "页面&显示" section.
*/
/** Homepage sort options — keep in sync with AKSRT_Settings_Home_Cms::homepage_allowed_sorts() */
const sortOptions = [
{ label: '最近更新', value: 'modified' },
{ label: '发布时间', value: 'date' },
{ label: '浏览量', value: 'views' },
{ label: '点赞数', value: 'likes' },
{ label: '评论数', value: 'comments' },
{ label: '收藏数', value: 'favorites' },
{ label: '下载量', value: 'downloads' },
{ label: '随机', value: 'rand' },
]
export const pageDisplaySchemas = {
/**
* Header navigation settings