插件推荐

温馨提示:点击页面下方以展开或折叠目录~

必装插件

hexo-wordcount-必装插件

hexo-wordcount

  • 安装
1
npm install hexo-wordcount --save
  • 配置
    【内置支持】

hexo-generator-index-pin-top

  • 安装
1
2
npm uninstall --save hexo-generator-index #首先卸载 hexo-generator-index
npm install --save hexo-generator-index-pin-top
  • 配置
    【内置支持】

选装插件[配置文件写到站点_config.yml里面]

hexo-tag-mmedia

  • 安装
1
npm install hexo-tag-mmedia --save
  • 配置文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
mmedia:
# https://dplayer.diygod.dev/zh/guide.html#%E5%8F%82%E6%95%B0
dplayer:
cdn: https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.js
style_cdn: https://cdn.jsdelivr.net/npm/dplayer/dist/DPlayer.min.css
hls_cdn: https://cdn.jsdelivr.net/npm/hls.j/dist/hls.min.js
dash_cdn: https://cdn.jsdelivr.net/npm/dashjs/dist/dash.all.min.js
shaka_dash_cdn: https://cdn.jsdelivr.net/npm/shaka-player/dist/shaka-player.compiled.js
flv_cdn: https://cdn.jsdelivr.net/npm/flv.js/dist/flv.min.js
webtorrent_cdn: https://cdn.jsdelivr.net/npm/webtorrent/webtorrent.min.js
default:
audio:
default:
video:
default:
aplayer:
js: https://cdn.jsdelivr.net/npm/aplayer@1/dist/APlayer.min.js
css: https://cdn.jsdelivr.net/npm/aplayer@1/dist/APlayer.min.css
default:
contents:
meting:
js: https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js
api:
default:
bilibili:
default:
page: 1
danmaku: true
allowfullscreen: allowfullscreen
sandbox: allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups
width: 100%
max_width: 850px
margin: auto

hexo-neat

  • 安装
1
npm install --save hexo-neat
  • 配置文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# hexo-neat
neat_enable: true
neat_html:
enable: true
exclude:
neat_css:
enable: true
exclude:
- '*.min.css'
neat_js:
enable: true
mangle: true
output:
compress:
exclude:
- '*.min.js'

hexo-lazyload-image

  • 安装
1
npm install hexo-lazyload-image --save
  • 配置文件
1
2
3
4
lazyload:
enable: true
onlypost: false
loadingImg: # eg. ./images/loading.png # 可以配置加载图片

hexo-renderer-markdown-it-plus

  • 安装
1
2
3
npm uninstall --save hexo-renderer-marked # 卸载 hexo-renderer-marked
npm install --save hexo-renderer-markdown-it-plus
npm install --save markdown-it-katex
  • 配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# plugin markdown_it_plus
markdown_it_plus:
highlight: true
html: true
xhtmlOut: true
breaks: true
langPrefix:
linkify: true
typographer:
quotes: “”‘’
plugins:
# for math formula
- plugin:
name: markdown-it-katex
enable: true
- plugin:
name: markdown-it-mark
enable: false
mathjax:
eanble: true

hexo-generator-feed

  • 安装
1
npm install --save hexo-generator-feed 

hexo-generator-sitemap

  • 安装
1
npm install hexo-generator-sitemap --save

hexo-blog-encrypt

  • 安装
1
npm install --save hexo-blog-encrypt
  • 配置
1
2
3
4
5
6
7
8
9
10
# Security
encrypt: # hexo-blog-encrypt
enable: true
#silent: true #是否启用log true为不启用
abstract: 有东西被加密了, 请输入密码查看.
message: 您好, 这里需要密码.
#tags: [{name: 加密, password: @abo}]
theme: xray #加密框的主题
wrong_pass_message: 抱歉, 这个密码看着不太对, 请再试试.
wrong_hash_message: 抱歉, 这个文章不能被校验, 不过您还是能看看解密后的内容.

详细配置请见官网

hexo-generator-json-content

  • 安装
1
npm install --save hexo-generator-json-content

hexo-statistics-charts

  • 安装
1
npm install --save hexo-statistics-charts
  • 配置
    【内置支持】
    详情请见官网

hexo-baidu-url-submit

  • 安装
1
npm install --save hexo-baidu-url-submit
  • 配置
1
2
3
4
5
# 站点配置文件
deploy:
- type: s3 ## 这是我原来的deployer
...
- type: baidu_url_submitter ## 这是新加的
1
2
3
4
5
6
7
# 站点配置文件
baidu_url_submit:
count: 1 ## 提交最新的一个链接
host: 19999997.xyz ## 在百度站长平台中注册的域名
token: your_token ## 请注意这是您的秘钥, 所以请不要把博客源代码发布在公众仓库里!
path: baidu_urls.txt ## 文本文档的地址, 新链接会保存在此文本文档里

hexo-dynamic-config【有冲突】

  • 安装
1
npm install hexo-dynamic-config --save

1. Hexo-theme-purabo-使用教程
2. Hexo-theme-purabo-快速开始
3. Hexo-theme-purabo-主题及站点配置
4. 插件推荐