主题配置文件,更改canvas_nest--enable true; color 0,0,0; count 200
主题配置文件,更改reading_progress--enable true
主题配置文件,更改custom_scrollbar--true
主题配置文件,更改symbols_count_time--:
1 2 3 4 5 6 7 8 9 10 11
symbols_count_time: separated_meta:true # 文章中的显示是否显示文字(本文字数|阅读时长) item_text_post:true # 网页底部的显示是否显示文字(站点总字数|站点阅读时长) item_text_total:false # Average Word Length (chars count in word) awl:4 # Words Per Minute wpm:275 suffix:mins.
live2d: enable:true scriptFrom:local# 默认 pluginRootPath:live2dw/# 插件在站点上的根目录(相对路径) pluginJsPath:lib/# 脚本文件相对与插件根目录路径 pluginModelPath:assets/# 模型文件相对与插件根目录路径 # scriptFrom: jsdelivr # jsdelivr CDN # scriptFrom: unpkg # unpkg CDN # scriptFrom: https://cdn.jsdelivr.net/npm/live2d-widget@3.x/lib/L2Dwidget.min.js # 你的自定义 url tagMode:false# 标签模式, 是否仅替换 live2d tag标签而非插入到所有页面中 debug:false# 调试, 是否在控制台输出日志 model: use:live2d-widget-model-wanko# npm-module package name #use: live2d-widget-model-z16 #use: live2d-widget-model-haruto #use: live2d-widget-model-koharu #use: live2d-widget-model-miku #use: live2d-widget-model-shizuku #use: live2d-widget-model-hijiki #use: live2d-widget-model-tororo # use: wanko # 博客根目录/live2d_models/ 下的目录名 # use: ./wives/wanko # 相对于博客根目录的路径 # use: https://cdn.jsdelivr.net/npm/live2d-widget-model-wanko@1.0.5/assets/wanko.model.json # 你的自定义 url scale:1# Scale between the model and the canvas (模型与canvas的缩放) hHeadPos:10# Horizontal position of model's head (模型头部横坐标) vHeadPos:0.618# Vertical position of model's head (模型头部纵坐标) display: superSample:2# rate for super sampling rate (超采样等级) width:300# Width to the canvas which shows the model (模型的长度) height:600# Height to the canvas which shows the model (模型的高度) position:right# Left of right side to show (显示位置:左或右) hOffset:0# Horizontal offset of the canvas (canvas水平偏移) vOffset:-20# Vertical offset of the canvas (canvas垂直偏移) mobile: show:true# Whether to show on mobile device (是否在移动设备上显示) scale:0.2# Scale on mobile device (移动设备上的缩放) motion:true# Whether to enable motion detection on mobile devices (移动设备是否开启重力感应) react: opacityDefault:0.7# Default opacity (默认透明度) opacityOnHover:0.2# OnHover opacity (鼠标移上透明度)
博客配置文件,加入Security,更改为Security--encrypt--true
博客配置文件,加入Local Search,添加:
1 2 3 4 5 6
# Local Search search: path:search.xml field:post format:html limit:10000
Error: spawn git ENOENT at notFoundError (%%\node_modules\cross-spawn\lib\enoent.js:11:11) at verifyENOENT (%%\node_modules\cross-spawn\lib\enoent.js:46:16) at ChildProcess.cp.emit (%%\node_modules\cross-spawn\lib\enoent.js:33:19) at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
可能原因:
根据在git bash中使用hexo d -g命令无报错,推测为git的系统变量配置或者hexo的git配置出错;
YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 9, column 4: top: true ^ at generateError (F:\PROHECT\Blog\node_modules\js-yaml\lib\js-yaml\loader.js:167:10) at throwError (F:\PROHECT\Blog\node_modules\js-yaml\lib\js-yaml\loader.js:173:9) at readBlockMapping (F:\PROHECT\Blog\node_modules\js-yaml\lib\js-yaml\loader.js:1073:9) at composeNode (F:\PROHECT\Blog\node_modules\js-yaml\lib\js-yaml\loader.js:1359:12) at readDocument (F:\PROHECT\Blog\node_modules\js-yaml\lib\js-yaml\loader.js:1519:3) at loadDocuments (F:\PROHECT\Blog\node_modules\js-yaml\lib\js-yaml\loader.js:1575:5) at Object.load (F:\PROHECT\Blog\node_modules\js-yaml\lib\js-yaml\loader.js:1596:19) at parseYAML (F:\PROHECT\Blog\node_modules\hexo-front-matter\lib\front_matter.js:80:21) at parse (F:\PROHECT\Blog\node_modules\hexo-front-matter\lib\front_matter.js:56:12) at Promise.all.spread (F:\PROHECT\Blog\node_modules\hexo\lib\plugins\processor\post.js:48:20) at tryCatcher (F:\PROHECT\Blog\node_modules\bluebird\js\release\util.js:16:23) at Promise._settlePromiseFromHandler (F:\PROHECT\Blog\node_modules\bluebird\js\release\promise.js:509:35) at Promise._settlePromise0 (F:\PROHECT\Blog\node_modules\bluebird\js\release\promise.js:614:10) at Promise._settlePromises (F:\PROHECT\Blog\node_modules\bluebird\js\release\promise.js:694:18) at Promise._fulfill (F:\PROHECT\Blog\node_modules\bluebird\js\release\promise.js:638:18)
可能原因:
*.md文件的头部信息中,冒号后需要加空格(top: true);
如果报错信息中显示的错误点加了空格,则是上一栏未加空格;
如果报错信息中没有错误点,则是第一行的冒号后未加空格;
解决办法:
找到相应文件的相应位置;
检查该位置及其前后的冒号后是否添加了空格。
Could not read from remote repository
情境:使用hexo d -g上传时出现。
1 2 3 4 5
Connection reset by 13.229.188.59 port 22 fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
failed to locate @import file ../../../../source\_posts\source\_data\styles.styl
at Evaluator.visitImport (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:915:21) at Evaluator.Visitor.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\index.js:28:40) at Evaluator.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:160:18) at Evaluator.visitBlock (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:720:39) at Evaluator.Visitor.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\index.js:28:40) at Evaluator.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:160:18) at visitBody (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:433:17) at Evaluator.visitEach (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:449:7) at Evaluator.Visitor.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\index.js:28:40) at Evaluator.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:160:18) at Evaluator.visitRoot (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:707:27) at Evaluator.Visitor.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\index.js:28:40) at Evaluator.visit (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:160:18) at Evaluator.evaluate (F:\PROHECT\Blog\node_modules\stylus\lib\visitor\evaluator.js:247:15) at Renderer.render (F:\PROHECT\Blog\node_modules\stylus\lib\renderer.js:86:26) at Hexo.module.exports (F:\PROHECT\Blog\node_modules\hexo-renderer-stylus\lib\renderer.js:53:6)
可能原因:
渲染出错???好像是相对路径有问题
解决办法:
暂时停止使用插入样式,
Hexo 博客主页报错
Hexo更改主题后启动服务器,界面显如下字符:
1
extendsincludes/layout.pug block content include includes/recent-posts.pug includeincludes/partial