From c73ef1c06551644b0d60fcf5fb98fbaeb040bce3 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sun, 14 Jan 2024 18:50:15 +0800 Subject: [PATCH] [opt] note --- _config.yml | 11 ++++++++--- languages/en.yml | 2 +- languages/zh-CN.yml | 2 +- languages/zh-TW.yml | 2 +- layout/_partial/widgets/related.ejs | 2 +- scripts/events/lib/config.js | 2 +- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/_config.yml b/_config.yml index c946daa..56bd1bd 100755 --- a/_config.yml +++ b/_config.yml @@ -18,11 +18,16 @@ open_graph: ######## Sidebar ######## +# 左上角显示的 logo 区域,包含图标、大标题、副标题 logo: - avatar: '[config.avatar](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)' - title: '[config.title](/)' # you can set html tag like: '[](/)' - subtitle: # 文字1 | 文字2(鼠标放上去会切换到文字2) + avatar: '[config.avatar](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)' + title: '[config.title](/)' # you can set html tag like: '[](/)' + subtitle: '' # '文字1 | 文字2' (鼠标放上去会切换到文字2) +# 侧边栏主功能导航菜单 +# 自己可以增加任意的键值对 +# 键:就是 menu_id,后面需要用到 +# 值:就是显示的 md 链接,方括号内支持文字和图片标签 menu: # post: '[btn.blog](/)' # wiki: '[btn.wiki](/wiki/)' diff --git a/languages/en.yml b/languages/en.yml index 219dfd9..e2bd87c 100755 --- a/languages/en.yml +++ b/languages/en.yml @@ -24,7 +24,7 @@ meta: related_posts: Related Posts comment_title: Join the discussion back_to_top: Back to top - more: 'More %s' + more: More created_author: '%s posted on' created: 'Posted on' updated: 'Updated on' diff --git a/languages/zh-CN.yml b/languages/zh-CN.yml index 47af653..bdca9a5 100755 --- a/languages/zh-CN.yml +++ b/languages/zh-CN.yml @@ -24,7 +24,7 @@ meta: related_posts: 您可能感兴趣的文章 comment_title: 快来参与讨论吧 back_to_top: 回到顶部 - more: '更多「%s」' + more: 更多 created_author: 本文由 %s 发布于 created: 发布于 updated: 更新于 diff --git a/languages/zh-TW.yml b/languages/zh-TW.yml index 7f557d6..2d43d1e 100755 --- a/languages/zh-TW.yml +++ b/languages/zh-TW.yml @@ -24,7 +24,7 @@ meta: related_posts: 您可能感興趣的文章 comment_title: 參與討論 back_to_top: 回到頁首 - more: '更多「%s」' + more: 更多 created_author: 本文由 %s 發布於 created: 發布於 updated: 更新於 diff --git a/layout/_partial/widgets/related.ejs b/layout/_partial/widgets/related.ejs index 4667d7a..d218140 100644 --- a/layout/_partial/widgets/related.ejs +++ b/layout/_partial/widgets/related.ejs @@ -32,7 +32,7 @@ function relatedWiki() { for (let relatedItem of relatedItems) { el += `` el += `
` - el += `${__('meta.more', relatedItem.name)}` + el += `${__('meta.more') + __('symbol.colon') + relatedItem.name}` el += `
` el += `