# 头像设置
avatar:
url: /images/head.jpg
# If true, the avatar would be dispalyed in circle.
rounded: false
# The value of opacity should be choose from 0 to 1 to set the opacity of the avatar.
opacity: 1
# 设置为true 开启头像旋转
rotated: true
sidebar:
position: left //侧栏位置
display: post
offset: 12
offset_float: 12
b2t: true //显示返回顶部按钮
scrollpercent: true //显示百分比
onmobile: false //在移动设备上不显示侧边栏
开启站内搜索
1
npm install hexo-generator-searchdb –save
编辑站点配置文件,新增以下内容到任意位置:
1
2
3
4
5
search:
path: search.xml
field: post
format: html
limit: 10000
编辑主题配置文件,启用本地搜索功能:
1
2
3
4
5
6
7
8
9
10
11
# Local search 站内搜索
# Dependencies: https://github.com/theme-next/hexo-generator-searchdb
local_search:
enable: true
# if auto, trigger search by changing input
# if manual, trigger search by pressing enter key or search button
trigger: auto
# show top n results per article, show all results by setting to -1
top_n_per_article: 1
# unescape html strings to the readable one
unescape: false