beian: enable:true icp:xICP备xxx号 # The digit in the num of gongan beian. gongan_id:xxx # The full num of gongan beian. gongan_num:x公网安备xxx号 # The icon for gongan beian. See: http://www.beian.gov.cn/portal/download gongan_icon_url:xxx
设置侧边栏头像及样式
1 2 3 4 5 6 7
avatar: # Replace the default image and set the url here. url:/images/avatar.jpg # If true, the avatar will be dispalyed in circle. rounded:true # If true, the avatar will be rotated with the cursor. rotated:true
社交链接
将需要的链接去掉注释即可
1 2 3 4 5
social: #GitHub: https://github.com/yourname || fab fa-github #E-Mail: mailto:[email protected] || fa fa-envelope #Weibo: https://weibo.com/yourname || fab fa-weibo ...
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:mac
valine: enable:true appid:xxx appkey:xxx notify:true# Mail notifier verify:false# Verification code placeholder:Justgogo# 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: 0
# abbrlink config abbrlink: alg:crc32#support crc16(default) and crc32 rep:hex#support dec(default) and hex drafts:false#(true)Process draft,(false)Do not process draft. false(default) # Generate categories from directory-tree # depth: the max_depth of directory-tree you want to generate, should > 0 auto_category: enable:true#true(default) depth:#3(default) over_write:false auto_title:false#enable auto title, it can auto fill the title by path auto_date:false#enable auto date, it can auto fill the date by time today force:false#enable force mode,in this mode, the plugin will ignore the cache, and calc the abbrlink for every post even it already had abbrlink.
Next 主题在主页中默认展示每篇文章的全文,如果存在长度较长的文章,则浏览体验较差。当然我们可以选择 hexo 的原生方法,即在文章中手动添加 <!-- more --> 的方式实现,但是对于我这样的懒人来说,这样的手动添加方式过于麻烦,且不便于文章 md 文件的可移植性。因此我们使用插件 hexo-auto-excerpt 完成。
1
$ npm install hexo-auto-excerpt --save
然后在 folder/_config.yml 尾部添加配置
1 2 3
auto_excerpt: enable:true length:150
添加豆瓣读书 & 电影
1
$ npm install hexo-douban --save
然后根据前文 “添加页面” 操作添加相应页面
1 2 3
menu: Books:/books/||fafa-film#This is your books page Movies:/movies/||fafa-book#This is your movies page
然后在 folder/_config.yml 尾部添加配置
1 2 3 4 5 6 7 8 9 10
douban: user:xxx builtin:true book: title:'This is my book title' quote:'This is my book quote' movie: title:'This is my movie title' quote:'This is my movie quote' timeout:10000