feat: 添加文章置顶功能
- 添加 pinned 和 category_pinned 字段支持文章置顶 - archive 页面置顶文章独立于时间轴显示 - 主页卡片显示置顶图标 - 支持全局置顶和分类置顶两种模式 - 修复置顶文章在标签/未分类筛选时的过滤问题
This commit is contained in:
@@ -36,6 +36,7 @@ enum I18nKey {
|
||||
notFound = "notFound",
|
||||
notFoundDesc = "notFoundDesc",
|
||||
backToHome = "backToHome",
|
||||
pinned = "pinned",
|
||||
}
|
||||
|
||||
export default I18nKey;
|
||||
|
||||
@@ -39,4 +39,5 @@ export const en: Translation = {
|
||||
[Key.notFound]: "Page Not Found",
|
||||
[Key.notFoundDesc]: "The link is broken, the page has gone missing",
|
||||
[Key.backToHome]: "Back to Home",
|
||||
[Key.pinned]: "Pinned",
|
||||
};
|
||||
|
||||
@@ -39,4 +39,5 @@ export const zh_CN: Translation = {
|
||||
[Key.notFound]: "页面未找到",
|
||||
[Key.notFoundDesc]: "你访问的链接已断开,页面走丢了",
|
||||
[Key.backToHome]: "返回首页",
|
||||
[Key.pinned]: "置顶",
|
||||
};
|
||||
|
||||
@@ -39,4 +39,5 @@ export const zh_TW: Translation = {
|
||||
[Key.notFound]: "頁面未找到",
|
||||
[Key.notFoundDesc]: "你訪問的連結已斷開,頁面走丟了",
|
||||
[Key.backToHome]: "返回首頁",
|
||||
[Key.pinned]: "置頂",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user