hexo下常用插件
·
1 min read
博客目前还坚守着hexo技术栈。这里Mark下我使用到的插件
注意:配置所在文件为_config.yml
hexo-abbrlink
permalink: :year/:month/:day/:abbrlink/
hexo-algoliasearch
文章检索,免费额度够用
# https://github.com/LouisBarranqueiro/hexo-algoliasearch
algolia:
appId:
applicationID:
apiKey:
adminApiKey:
chunkSize: 5000
indexName: my_blog
fields:
- content:strip:truncate,0,200
- title
- permalink
- tags
hexo-excerpt
自动摘要
# https://github.com/chekun/hexo-excerpt
excerpt:
depth: 5
excerpt_excludes: ['img']
more_excludes: []
hideWholePostExcerpts: true
hexo-generator-archive
归档页面生成
# https://github.com/hexojs/hexo-generator-archive
archive_generator:
enabled: true
per_page: 10
yearly: true
monthly: false
daily: false
order_by: -date
hexo-generator-feed
生成feed.xml订阅链接,服务RSS
# https://github.com/hexojs/hexo-generator-feed
feed:
type: atom
path: atom.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: ' '
hexo-generator-sitemap
生成站点xml,SEO有用
#Generate sitemap.
# https://github.com/hexojs/hexo-generator-sitemap
sitemap:
path: sitemap.xml
hexo-generator-tag
生成TAG标签页面
# https://github.com/hexojs/hexo-generator-tag
tag_generator:
per_page: 10
order_by: -date
hexo-symbols-count-time
文章统计数据生成,比如字数,大概需要阅读时长等
# @see https://github.com/theme-next/hexo-symbols-count-time
symbols_count_time:
symbols: true
time: true
total_symbols: true
total_time: true
exclude_codeblock: false
awl: 2
wpm: 300
hexo-theme-next
站点主题,我比较喜欢theme-next,主要是配置也挺丰富
# https://github.com/next-theme/hexo-theme-next
theme: next
写在最后
- hexo目前还属于active状态
- 博客的维护重点还是内容,目前hexo还算够用