footer: # Specify the date when the site was setup. # If not defined, current year will be used. #since: 2015 #此处可设置网站建站时间
# Icon between year and copyright info. icon: # Icon name in fontawesome, see: https://fontawesome.com/v4.7.0/icons/ # `heart` is recommended with animation in red (#ff0000). name:heart # If you want to animate the icon, set it to true. animated:false # Change the color of icon, using Hex Code. color:"#808080"
# Social Links # Usage: `Key: permalink || icon` # Key is the link label showing to end users. # Value before `||` delimeter is the target permalink. # Value after `||` delimeter is the name of FontAwesome icon. If icon (with or without delimeter) is not specified, globe icon will be loaded. social: GitHub:https://github.com/dasnnj||github E-Mail:mailto:dasnnj@outlook.com||envelope #Weibo: https://weibo.com/yourname || weibo #Google: https://plus.google.com/yourname || google #Twitter: https://twitter.com/yourname || twitter #FB Page: https://www.facebook.com/yourname || facebook #VK Group: https://vk.com/yourname || vk #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 social_icons: enable:true#设为true icons_only:false transition:false
头像
1 2 3 4 5 6 7 8 9 10 11 12 13
# 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/icon.jpeg # If true, the avatar would be dispalyed in circle. rounded:true#显示圆形头像 # The value of opacity should be choose from 0 to 1 to set the opacity of the avatar. opacity:1 # If true, the avatar would be rotated with the cursor. rotated:false#设为true则鼠标移到头像上时候,鼠标显示为手
显示摘要 (下面的enable设为true即按照下面设定的高度显示摘要;官方推荐使用<!– more –>自定义摘要长度; read_more_btn设为true显示继续阅读按钮
1 2 3 4 5 6 7 8 9 10 11
# Automatically Excerpt. Not recommend. # Use <!-- more --> in the post to control excerpt accurately. # 显示摘要,不显示全文 auto_excerpt: enable:false length:150
# Read more button # If true, the read more button would be displayed in excerpt section. read_more_btn:true
高级配置
打赏功能
1 2 3 4 5 6 7 8 9 10 11
# Reward # If true, reward would be displayed in every article by default. # And you can show or hide one article specially through add page variable `reward: true/false`. # 打赏 reward: enable:true comment:坚持原创技术分享,您的支持将鼓励我继续创作! wechatpay:/images/xxx.png alipay:/images/xxx.jpg # bitcoin: /images/unionpay.jpg
# 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
# Fancybox. There is support for old version 2 and new version 3. # Choose only any one variant, do not need to install both. # To install 2.x: https://github.com/theme-next/theme-next-fancybox # To install 3.x: https://github.com/theme-next/theme-next-fancybox3 #图片展示效果img fancybox:true