# 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
添加背景特效
安装 theme-next-canvas-nest
1 2
$ cd themes/next $ git clone https://github.com/theme-next/theme-next-canvas-nest source/lib/canvas-nest
开启 canvas_nest 背景特效,将 “enable: “ 的值改为 “true”
1 2 3 4 5 6 7
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:99# the number of lines
设置加载进度样式
安装 heme-next-pace
1 2
$ cd themes/next $ git clone https://github.com/theme-next/theme-next-pace source/lib/pace
开启 pace ,”theme:” 设置进度条样式
1 2 3 4 5 6 7 8 9
# Progress bar in the top during page loading. # Dependencies: https://github.com/theme-next/theme-next-pace # For more information: https://github.com/HubSpot/pace pace: enable:true # Themes list: # big-counter | bounce | barber-shop | center-atom | center-circle | center-radar | center-simple # corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal theme:corner-indicator
设置侧边栏
修改 themes\next\_config.yml
1 2 3 4 5 6 7 8 9 10 11
sidebar: # 侧边栏位置 # Sidebar Position. position:left #position: right
# 侧边栏大小 # Manual define the sidebar width. If commented, will be default for: # Muse | Mist: 320 Pisces|Gemini:400 width:300
添加头像
修改 themes\next\_config.yml
1 2 3 4 5 6 7 8 9 10 11
# Sidebar Avatar avatar: # In theme directory (source/images): /images/avatar.gif # In site directory (source/uploads): /uploads/avatar.gif # You can also use other linking images. # 头像最好本地存放,存储位置在 themes\next\source\images url:/images/tx1.jpg # If true, the avatar would be dispalyed in circle. rounded:false # If true, the avatar would be rotated with the cursor. rotated:false
# 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: user total_views: true total_views_icon: eye post_views: true post_views_icon: eye
codeblock: # Code Highlight theme # Available values: normal | night | night eighties | night blue | night bright # See: https://github.com/chriskempson/tomorrow-theme highlight_theme:night # Add copy button on codeblock copy_button: enable:true # Show text copy result. show_result:true # Available values: default | flat | mac style:flat
# Automatically Excerpt. Not recommand. # Please use <!-- more --> in the post to control excerpt accurately. auto_excerpt: enable:true length:150# 文章预览的文本长度