采用【Hexo 6.3.0】 + 【NexT 7.8.0】主题。
版本
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
| $ hexo v hexo: 6.3.0 hexo-cli: 4.2.0 node: 18.17.0 acorn: 8.8.2 ada: 2.5.0 ares: 1.19.1 brotli: 1.0.9 cldr: 43.0 icu: 73.1 llhttp: 6.0.11 modules: 108 napi: 9 nghttp2: 1.52.0 nghttp3: 0.7.0 ngtcp2: 0.8.1 openssl: 3.0.9+quic simdutf: 3.2.12 tz: 2023c undici: 5.22.1 unicode: 15.0 uv: 1.44.2 uvwasi: 0.0.18 v8: 10.2.154.26-node.26 zlib: 1.2.13.1-motley
|
依赖
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| { "dependencies": { "hexo": "^6.3.0", "hexo-deployer-git": "^4.0.0", "hexo-excerpt": "^1.3.0", "hexo-fs": "^4.1.1", "hexo-generator-archive": "^2.0.0", "hexo-generator-category": "^2.0.0", "hexo-generator-index": "^3.0.0", "hexo-generator-json-content": "^4.2.3", "hexo-generator-searchdb": "^1.4.1", "hexo-generator-tag": "^2.0.0", "hexo-renderer-ejs": "^2.0.0", "hexo-renderer-marked": "^6.1.1", "hexo-renderer-stylus": "^3.0.0", "hexo-server": "^3.0.0" } }
|
解决Next主题的 auto_excerpt
配置失效
auto_excerpt
是在主页显示文章的摘要,点击“阅读全文”进入文章全文。Next v7.6.0+已经删掉了这个功能,改由插件来实现这个功能,【详情】。
安装【hexo-excerpt】插件
1
| npm install hexo-excerpt --save
|
在站点配置文件加入:
1 2 3 4 5
| excerpt: depth: 5 excerpt_excludes: [] more_excludes: [] hideWholePostExcerpts: true
|