avatar: # Replace the default image and set the url here. url:https://avatars1.githubusercontent.com/u/24520686?s=400&u=78b21dec789dfb9c51379f11ae2722672546e3a6&v=4#头像图片路径 图片放置在next/source/images # If true, the avatar will be dispalyed in circle. rounded:false#是否显示圆形头像,true表示圆形,false默认 # If true, the avatar will be rotated with the cursor. rotated:false#是否旋转 true表示旋转,false默认 opacity:0.7#透明度0~1之间
# Easily enable fast Ajax navigation on your website. # Dependencies: https://github.com/theme-next/theme-next-pjax 一般有 `Dependencies` 的都需要单独下载依赖 pjax:true
开启本地搜索
修改 next 配置:
1 2 3 4 5 6 7 8 9 10 11 12 13
# 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 # Preload the search data when the page loads. preload:false
# 设置几何动效背景 # Canvas-nest # Dependencies: https://github.com/theme-next/theme-next-canvas-nest canvas_nest: enable:true onmobile:true# display on mobile or not color:"0,0,255"# RGB values, use `,` to separate opacity:0.5# the opacity of line: 0~1 zIndex:-1# z-index property of the background count:170# the number of lines
开启自动摘录
注意 NexT 7.6.0 及更高版本需要安装 hexo-excerpt 插件, 安装完毕需要重启 hexo 才会生效
codeblock: # Code Highlight theme # Available values: normal | night | night eighties | night blue | night bright | solarized | solarized dark | galactic # See: https://github.com/chriskempson/tomorrow-theme highlight_theme:nighteighties#代码高亮主题设置 设置喜欢的模式,默认:normal # Add copy button on codeblock copy_button: enable:true#是否添加复制按钮 # Show text copy result. show_result:true#是否显示文本复制结果 # Available values: default | flat | mac style:mac# 代码块样式
开启访问计数
修改 next 配置文件:
1 2 3 4 5 6 7 8 9 10 11
# Show Views / Visitors of the website / page with busuanzi. # Get more information on http://ibruce.info/2015/04/04/busuanzi # 网站计数器 busuanzi_count: enable:true total_visitors:true total_visitors_icon:fafa-user total_views:true total_views_icon:fafa-eye post_views:true post_views_icon:fafa-eye