Skip to content

Commit

Permalink
✨ 缩短链接
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Sep 26, 2024
1 parent 825b4e5 commit a322c03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .vitepress/blog-theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const RSS: Theme.RSSOptions = {

// 所有配置项,详见文档: https://theme.sugarat.top/
const blogTheme = getThemeConfig({
timeline: true,
// 开启RSS支持
RSS,

Expand Down
2 changes: 1 addition & 1 deletion .vitepress/config/en.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {defineConfig} from 'vitepress'
import {getText} from "../sugarat/theme/src/composables/config/i18n";
import {ThemeConfig, getNav, getFooter} from "../utils/themeConfig";
import {ThemeConfig, getNav} from "../utils/themeConfig";

const lang = 'en'
export const en = defineConfig({
Expand Down
4 changes: 3 additions & 1 deletion .vitepress/sugarat/theme/src/composables/config/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const i18nData: Record<string, Record<string, string>> = {
// UITextArea
"about": "About",
"homepage": "Home",
"timeline": "Timeline",
"requestFriendLink": "Request Friend Link",
// Article
"article.charCountBefore": "Count of word(s)",
Expand Down Expand Up @@ -41,7 +42,8 @@ const i18nData: Record<string, Record<string, string>> = {
},
zh: {
"about": "关于",
"homepage": "首页",
"homepage": "主页",
"timeline": "时间线",
"requestFriendLink": "申请友链",
// UITextArea
"article.charCountBefore": "字数",
Expand Down

0 comments on commit a322c03

Please sign in to comment.