[opt] note
This commit is contained in:
parent
d87309c757
commit
c73ef1c065
|
@ -18,11 +18,16 @@ open_graph:
|
||||||
|
|
||||||
|
|
||||||
######## Sidebar ########
|
######## Sidebar ########
|
||||||
|
# 左上角显示的 logo 区域,包含图标、大标题、副标题
|
||||||
logo:
|
logo:
|
||||||
avatar: '[config.avatar](/about/)' # you can set avatar link in _config.yml or '[https://xxx.png](/about/)'
|
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"/>](/)'
|
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:
|
menu:
|
||||||
# post: '[btn.blog](/)'
|
# post: '[btn.blog](/)'
|
||||||
# wiki: '[btn.wiki](/wiki/)'
|
# wiki: '[btn.wiki](/wiki/)'
|
||||||
|
|
|
@ -24,7 +24,7 @@ meta:
|
||||||
related_posts: Related Posts
|
related_posts: Related Posts
|
||||||
comment_title: Join the discussion
|
comment_title: Join the discussion
|
||||||
back_to_top: Back to top
|
back_to_top: Back to top
|
||||||
more: 'More %s'
|
more: More
|
||||||
created_author: '%s posted on'
|
created_author: '%s posted on'
|
||||||
created: 'Posted on'
|
created: 'Posted on'
|
||||||
updated: 'Updated on'
|
updated: 'Updated on'
|
||||||
|
|
|
@ -24,7 +24,7 @@ meta:
|
||||||
related_posts: 您可能感兴趣的文章
|
related_posts: 您可能感兴趣的文章
|
||||||
comment_title: 快来参与讨论吧
|
comment_title: 快来参与讨论吧
|
||||||
back_to_top: 回到顶部
|
back_to_top: 回到顶部
|
||||||
more: '更多「%s」'
|
more: 更多
|
||||||
created_author: 本文由 %s 发布于
|
created_author: 本文由 %s 发布于
|
||||||
created: 发布于
|
created: 发布于
|
||||||
updated: 更新于
|
updated: 更新于
|
||||||
|
|
|
@ -24,7 +24,7 @@ meta:
|
||||||
related_posts: 您可能感興趣的文章
|
related_posts: 您可能感興趣的文章
|
||||||
comment_title: 參與討論
|
comment_title: 參與討論
|
||||||
back_to_top: 回到頁首
|
back_to_top: 回到頁首
|
||||||
more: '更多「%s」'
|
more: 更多
|
||||||
created_author: 本文由 %s 發布於
|
created_author: 本文由 %s 發布於
|
||||||
created: 發布於
|
created: 發布於
|
||||||
updated: 更新於
|
updated: 更新於
|
||||||
|
|
|
@ -32,7 +32,7 @@ function relatedWiki() {
|
||||||
for (let relatedItem of relatedItems) {
|
for (let relatedItem of relatedItems) {
|
||||||
el += `<widget class="widget-wrapper related">`
|
el += `<widget class="widget-wrapper related">`
|
||||||
el += `<div class="widget-header cap theme dis-select">`
|
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>`
|
||||||
el += `<div class="widget-body related-posts">`
|
el += `<div class="widget-body related-posts">`
|
||||||
for (let id of relatedItem.items) {
|
for (let id of relatedItem.items) {
|
||||||
|
|
|
@ -57,7 +57,7 @@ module.exports = hexo => {
|
||||||
|
|
||||||
// default menu
|
// default menu
|
||||||
if (hexo.theme.config.menu == undefined) {
|
if (hexo.theme.config.menu == undefined) {
|
||||||
hexo.theme.config.menu = [];
|
hexo.theme.config.menu = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue