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:night # Add copy button on codeblock copy_button: enable:true # Show text copy result. show_result:true # Available values: default | flat | mac style:defaultCopy
图片浏览放大
1 2
cd themes/next/source/lib git clone https://github.com/theme-next/theme-next-fancybox3 fancyboxCopy
修改主题配置文件
1 2 3
# FancyBox is a tool that offers a nice and elegant way to add zooming functionality for images. # For more information: https://fancyapps.com/fancybox fancybox: trueCopy
站点访问统计
1 2 3 4 5 6 7 8 9 10
# 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:eyeCopy
# Valine # For more information: https://valine.js.org, https://github.com/xCss/Valine valine:# 评论 enable:true appid:jflkasjdklfjlajsdlkfklsd-sdfasdf# Your leancloud application appid appkey:ahskfdhlkasdkfjkalsdflasdf# Your leancloud application appkey notify:true# 评论回复邮件提醒, See: https://github.com/xCss/Valine/wiki verify:false# 验证码服务 Verification code placeholder:留言区# 留言区 Comment box placeholder avatar:mm# 头像配置 Gravatar style guest_info:nick,mail,link# 回复填写的信息 Custom comment header pageSize:10# Pagination size language:# Language, available values: en, zh-cn visitor:false# Article reading statistic comment_count:true# If false, comment count will only be displayed in post page, not in home page recordIP:false# Whether to record the commenter IP serverURLs:# When the custom domain name is enabled, fill it in here (it will be detected automatically by default, no need to fill in) #post_meta_order: 0Copy
本地搜索
1
npm install hexo-generator-searchdb --saveCopy
修改站点配置文件
1 2 3 4 5 6
# 本地搜索 search: path: search.xml field: post format: html limit:10000Copy
修改主题配置文件,开启本地搜索
1 2 3 4
# Local Search # Dependencies: https://github.com/theme-next/hexo-generator-searchdb local_search: enable: trueCopy
# Social Links # Usage: `Key: permalink || icon` # Key is the link label showing to end users. # Value before `||` delimiter is the target permalink, value after `||` delimiter is the name of Font Awesome icon. social: GitHub: https://github.com/valten-hyl || github E-Mail: mailto:valtenhyl@163.com || envelope Weibo: https://weibo.com/3114281855 || weibo 简书: https://www.jianshu.com/u/9f816d1869d4 || book 掘金: https://juejin.im/user/5baa5f9d5188255c5d569951 || ils #Google: https://plus.google.com/yourname || google #Twitter: https://twitter.com/yourname || twitter #FB Page: https://www.facebook.com/yourname || facebook #StackOverflow: https://stackoverflow.com/yourname || stack-overflow #YouTube: https://youtube.com/yourname || youtube #Instagram: https://instagram.com/yourname || instagram #Skype: skype:yourname?call|chat || skype RSS: /atom.xml || rssCopy
标签云配色
1 2 3 4 5 6 7 8
# TagCloud settings for tags page. tagcloud: # All values below are same as default, change them by yourself. min: 12# Minimun font size in px max: 31# Maxium font size in px start: "#381096"# Start color (hex, rgba, hsla or color keywords) end: "#922a4b"# End color (hex, rgba, hsla or color keywords) amount: 200# Amount of tags, change it if you have more than 200 tagsCopy
# 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: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 linesCopy
加载进度条
修改主题配置文件,开启进度条,选择进度条样式
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: pace-theme-bounce #选择进度条样式Copy