# Site title:美好的每一天 subtitle:'' description:'blog' keywords: author:souhup language:zh-CN timezone:''
修改网站图标和个人图标
向souhup.github.io/themes/next/source/images添加图标
修改souhup.github.io/themes/next/_config.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
favicon: small:/images/favicon-16x16.ico medium:/images/favicon-32x32.ico apple_touch_icon:/images/apple-touch-icon-next.png safari_pinned_tab:/images/logo.svg #android_manifest: /images/manifest.json #ms_browserconfig: /images/browserconfig.xml # Sidebar Avatar avatar: # Replace the default image and set the url here. url:/images/avatar.jpg # If true, the avatar would be dispalyed in circle. rounded:true # If true, the avatar would be rotated with the cursor. rotated:true
back2top: enable:true # Back to top in sidebar. sidebar:false # Scroll percent label in b2t button. scrollpercent:true
在右上角显示github链接
修改souhup.github.io/themes/next/_config.yml
1 2 3 4 5
# `Follow me on GitHub` banner in the top-right corner. github_banner: enable:true permalink:https://github.com/souhup title:FollowmeonGitHub
添加本地搜索
执行以下命令
1
npm install hexo-generator-search --save
修改souhup.github.io/themes/next/_config.yml
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