必装插件
hexo-wordcount
1
| npm install hexo-wordcount --save
|
1 2
| npm uninstall --save hexo-generator-index npm install --save hexo-generator-index-pin-top
|
选装插件[配置文件写到站点_config.yml
里面]
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:
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
|
1
| npm install --save hexo-neat
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| 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'
|
1
| npm install hexo-lazyload-image --save
|
1 2 3 4
| lazyload: enable: true onlypost: false loadingImg:
|
1 2 3
| npm uninstall --save 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
| markdown_it_plus: highlight: true html: true xhtmlOut: true breaks: true langPrefix: linkify: true typographer: quotes: “”‘’ plugins: - plugin: name: markdown-it-katex enable: true - plugin: name: markdown-it-mark enable: false mathjax: eanble: true
|
1
| npm install --save hexo-generator-feed
|
1
| npm install hexo-generator-sitemap --save
|
1
| npm install --save hexo-blog-encrypt
|
1 2 3 4 5 6 7 8 9 10
| encrypt: enable: true abstract: 有东西被加密了, 请输入密码查看. message: 您好, 这里需要密码. theme: xray wrong_pass_message: 抱歉, 这个密码看着不太对, 请再试试. wrong_hash_message: 抱歉, 这个文章不能被校验, 不过您还是能看看解密后的内容.
|
详细配置请见官网
1
| npm install --save hexo-generator-json-content
|
1
| npm install --save hexo-statistics-charts
|
1
| npm install --save hexo-baidu-url-submit
|
1 2 3 4 5
| deploy: - type: s3 ... - 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
|
1
| npm install hexo-dynamic-config --save
|
1. Hexo-theme-purabo-使用教程
2. Hexo-theme-purabo-快速开始
3. Hexo-theme-purabo-主题及站点配置
4. 插件推荐