# 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
首页显示文章摘要
默认的主题配置里,首页会显示每一篇文章的全文,如果想只显示文章摘要,对主题配置文件做如下更改:
1 2
# Use `description` in front-matter to specify post excerpt. excerpt_description:true
用户可以在文章中通过<!-- more -->标记来精确划分摘要信息,标记之前的段落将作为摘要显示在首页。
footer:# 底部信息区 # Specify the year when the site was setup. If not defined, current year will be used. #since: 2021
# Icon between year and copyright info. icon: # Icon name in Font Awesome. See: https://fontawesome.com/icons name:fafa-heart# 图标名称 # If you want to animate the icon, set it to true. animated:false # Change the color of icon, using Hex Code. color:"#ff0000"
# If not defined, `author` from Hexo `_config.yml` will be used. copyright:
# Powered by Hexo & NexT powered:false
# Beian ICP and gongan information for Chinese users. See: https://beian.miit.gov.cn, http://www.beian.gov.cn beian: enable:false icp: # The digit in the num of gongan beian. gongan_id: # The full num of gongan beian. gongan_num: # The icon for gongan beian. See: http://www.beian.gov.cn/portal/download gongan_icon_url:
添加社交链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
social: GitHub:https://github.com/fengyan-wby||fabfa-github E-Mail:mailto:wubangyu1993@gmail.com||fafa-envelope #Weibo: https://weibo.com/yourname || fab fa-weibo #Twitter: https://twitter.com/yourname || fab fa-twitter #FB Page: https://www.facebook.com/yourname || fab fa-facebook #StackOverflow: https://stackoverflow.com/yourname || fab fa-stack-overflow #YouTube: https://youtube.com/yourname || fab fa-youtube #Instagram: https://instagram.com/yourname || fab fa-instagram #Skype: skype:yourname?call|chat || fab fa-skype