# 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. url: /images/avatar.png # avatar.png改成你的头像文件的文件名 # If true, the avatar would be dispalyed in circle. rounded: true # 鼠标放在头像上,头像会旋转 # If true, the avatar would be rotated with the cursor. rotated: true # 头像设置成圆形,否则是矩形
# JavaScript 3D library. # Dependencies: https://github.com/theme-next/theme-next-three three: enable: true delay: false # Set true to further delay loading three_waves: true canvas_lines: true canvas_sphere: true
# Canvas-nest # Dependencies: https://github.com/theme-next/theme-next-canvas-nest # For more information: https://github.com/hustcc/canvas-nest.js canvas_nest: enable: false 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
# Canvas-ribbon # Dependencies: https://github.com/theme-next/theme-next-canvas-ribbon # For more information: https://github.com/zproo/canvas-ribbon canvas_ribbon: enable: false size: 300 # The width of the ribbon alpha: 0.6 # The transparency of the ribbon zIndex: -1 # The display level of the ribbon
search: path: search.xml field: post format: html limit: 10000
在主题配置文件中启用搜索功能,定位到local search,将enable改为true。
1 2 3 4 5 6 7 8 9 10 11 12 13
# Local Search # Dependencies: https://github.com/wzpan/hexo-generator-search 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