[opt] note

This commit is contained in:
xaoxuu 2024-01-14 18:50:15 +08:00
parent d87309c757
commit c73ef1c065
6 changed files with 13 additions and 8 deletions

View File

@ -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: '[<img no-lazy height="32px" src="xxx"/>](/)'
subtitle: # 文字1 | 文字2(鼠标放上去会切换到文字2)
subtitle: '' # '文字1 | 文字2' (鼠标放上去会切换到文字2)
# 侧边栏主功能导航菜单
# 自己可以增加任意的键值对
# 键:就是 menu_id后面需要用到
# 值:就是显示的 md 链接,方括号内支持文字和图片标签
menu:
# post: '[btn.blog](/)'
# wiki: '[btn.wiki](/wiki/)'

View File

@ -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'

View File

@ -24,7 +24,7 @@ meta:
related_posts: 您可能感兴趣的文章
comment_title: 快来参与讨论吧
back_to_top: 回到顶部
more: '更多「%s」'
more: 更多
created_author: 本文由 %s 发布于
created: 发布于
updated: 更新于

View File

@ -24,7 +24,7 @@ meta:
related_posts: 您可能感興趣的文章
comment_title: 參與討論
back_to_top: 回到頁首
more: '更多「%s」'
more: 更多
created_author: 本文由 %s 發布於
created: 發布於
updated: 更新於

View File

@ -32,7 +32,7 @@ function relatedWiki() {
for (let relatedItem of relatedItems) {
el += `<widget class="widget-wrapper related">`
el += `<div class="widget-header cap theme dis-select">`
el += `<span class="name">${__('meta.more', relatedItem.name)}</span>`
el += `<span class="name">${__('meta.more') + __('symbol.colon') + relatedItem.name}</span>`
el += `</div>`
el += `<div class="widget-body related-posts">`
for (let id of relatedItem.items) {

View File

@ -57,7 +57,7 @@ module.exports = hexo => {
// default menu
if (hexo.theme.config.menu == undefined) {
hexo.theme.config.menu = [];
hexo.theme.config.menu = {};
}
};