hexo下常用插件

博客目前还坚守着hexo技术栈。这里Mark下我使用到的插件

https://static.1991421.cn/2024/2024-02-08-112340.jpeg

注意:配置所在文件为_config.yml

1
permalink: :year/:month/:day/:abbrlink/

hexo-algoliasearch

文章检索,免费额度够用

1
2
3
4
5
6
7
8
9
10
11
12
13
# 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

自动摘要

1
2
3
4
5
6
# https://github.com/chekun/hexo-excerpt
excerpt:
depth: 5
excerpt_excludes: ['img']
more_excludes: []
hideWholePostExcerpts: true

hexo-generator-archive

归档页面生成

1
2
3
4
5
6
7
8
# 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

1
2
3
4
5
6
7
8
9
# 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有用

1
2
3
4
#Generate sitemap.
# https://github.com/hexojs/hexo-generator-sitemap
sitemap:
path: sitemap.xml

hexo-generator-tag

生成TAG标签页面

1
2
3
4
# https://github.com/hexojs/hexo-generator-tag
tag_generator:
per_page: 10
order_by: -date

hexo-symbols-count-time

文章统计数据生成,比如字数,大概需要阅读时长等

1
2
3
4
5
6
7
8
9
# @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,主要是配置也挺丰富

1
2
# https://github.com/next-theme/hexo-theme-next
theme: next

写在最后

  1. hexo目前还属于active状态
  2. 博客的维护重点还是内容,目前hexo还算够用