ERROR { err: YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 19: title: Ray Tracing: The Next Week ^ at generateError (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/node_modules/js-yaml/lib/js-yaml/loader.js:167:10) at throwError (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/node_modules/js-yaml/lib/js-yaml/loader.js:173:9) at readBlockMapping (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/node_modules/js-yaml/lib/js-yaml/loader.js:1027:9) at composeNode (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/node_modules/js-yaml/lib/js-yaml/loader.js:1359:12) at readDocument (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/node_modules/js-yaml/lib/js-yaml/loader.js:1525:3) at loadDocuments (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/node_modules/js-yaml/lib/js-yaml/loader.js:1588:5) at Object.load (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/node_modules/js-yaml/lib/js-yaml/loader.js:1614:19) at parseYAML (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/lib/front_matter.js:69:23) at parse (/Users/apple/Desktop/blog/node_modules/hexo-front-matter/lib/front_matter.js:50:12) at /Users/apple/Desktop/blog/node_modules/hexo/lib/plugins/processor/post.js:51:20 at tryCatcher (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:544:35) at Promise._settlePromise (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:729:18) at Promise._fulfill (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:673:18) at PromiseArray._resolve (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise_array.js:127:19) at PromiseArray._promiseFulfilled (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise_array.js:145:14) at PromiseArray._iterate (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise_array.js:115:31) at PromiseArray.init [as _init] (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise_array.js:79:10) at Promise._settlePromise (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:601:21) at Promise._settlePromise0 (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:729:18) at Promise._fulfill (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:673:18) at PromiseArray._resolve (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise_array.js:127:19) at PromiseArray._promiseFulfilled (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise_array.js:145:14) at Promise._settlePromise (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:609:26) at Promise._settlePromise0 (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/promise.js:729:18) at _drainQueueStep (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/async.js:93:12) at _drainQueue (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues [as _onImmediate] (/Users/apple/Desktop/blog/node_modules/bluebird/js/release/async.js:15:14) at processImmediate (internal/timers.js:461:21) { reason: 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line', mark: Mark { name: null, buffer: 'title: Ray Tracing: The Next Week\n' + 'comment: false\n' + 'date: 2021-07-30 00:42:59\n' + 'type:\n' + 'tags:\n' + ' - Computer Graphics\n' + ' - Ray Tracing\n' + 'categories: 光线追踪 (Ray Tracing)\n' + 'banner_img:\n' + 'index_img:\n' + 'abbrlink:\n' + 'translate_title:\n' + 'top:\n' + 'mathjax:\n' + '\x00', position: 18, line: 0, column: 18 } } } Process failed: %s _posts/RT2.md
解决方案
报错信息提示的很明确,原因是我们的标题出现了 : 造成文章无法正常生成,去掉即可:
-title: Ray Tracing: The Next Week +title: Ray Tracing The Next Week comment: false date: 2021-07-30 00:42:59 type: tags: - Computer Graphics - Ray Tracing categories: 光线追踪 (Ray Tracing) banner_img: index_img: abbrlink: translate_title: top: mathjax:
kex_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. FATAL { err: Error: Spawn failed at ChildProcess.<anonymous> (/Users/apple/Desktop/Dev/blog/node_modules/hexo-deployer-git/node_modules/hexo-util/lib/spawn.js:51:21) at ChildProcess.emit (events.js:315:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) { code: 128 } } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
解决方案
cd ~ cd .ssh ssh-keygen -t rsa -b 4096 -C "your_email@example.com" cat id_rsa.pub
Font-Awesome 图标失效
问题描述
最近更新 NexT 主题的 Font-Awesome 图标失效了,还不是全部失效,是部分失效显示为空白。
# Social Links # Usage: `Key: permalink || icon` # Key is the link label showing to end users. # Value before `||` delimiter is the target permalink, value after `||` delimiter is the name of Font Awesome icon. social: E-Mail:mailto:zoeyousa@gmail.com||fafa-envelope GitHub:https://github.com/Yousazoe||fabfa-github Twitter:https://twitter.com/YousaZoe||fabfa-twitter Weibo:https://www.weibo.com/6034231696/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1||fabfa-weibo Steam:https://steamcommunity.com/profiles/76561198856466228/||fabfa-steam Chess:https://www.chess.com/member/yousazoe||fabfa-chess-pawn RSS:/atom.xml||fafa-rss
可以发现失效的图标都是 fa fa-xxx 的形式,所以问题很可能是格式不一致,全部改成一样的即可:
# Social Links # Usage: `Key: permalink || icon` # Key is the link label showing to end users. # Value before `||` delimiter is the target permalink, value after `||` delimiter is the name of Font Awesome icon. social: E-Mail:mailto:zoeyousa@gmail.com||fabfa-envelope GitHub:https://github.com/Yousazoe||fabfa-github Twitter:https://twitter.com/YousaZoe||fabfa-twitter Weibo:https://www.weibo.com/6034231696/profile?rightmod=1&wvr=6&mod=personinfo&is_all=1||fabfa-weibo Steam:https://steamcommunity.com/profiles/76561198856466228/||fabfa-steam Chess:https://www.chess.com/member/yousazoe||fabfa-chess-pawn RSS:/atom.xml||fabfa-rss
❯ git status On branch main Your branch is up to date with 'origin/main'.
Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) (commit or discard the untracked or modified content in submodules) modified: .idea/workspace.xml modified: themes/next-reloaded (modified content, untracked content)
no changes added to commit (use "git add" and/or "git commit -a")
解决方案
这种情况相当于作为子项目未被追踪,最有可能的就是子文件夹里没有把 .git 文件删除干净,但 IDE 并没有显示,所以回到控制台:
# Script Vendors. Set a CDN address for the vendor you want to customize. # Be aware that you would better use the same version as internal ones to avoid potential problems. # Remember to use the https protocol of CDN files when you enable https on your site. vendors: # Internal path prefix. _internal:lib
INFO Validating config INFO DPlayer.min.css is not found in this version of dplayer, skip it. INFO Validating config INFO DPlayer.min.css is not found in this version of dplayer, skip it. INFO Start processing INFO neat the css: /home/runner/work/HEXO-BLOG/HEXO-BLOG/source/_data/styles.styl [ 17.54% saved] INFO neat the css: /home/runner/work/HEXO-BLOG/HEXO-BLOG/source/_data/variables.styl [ NaN% saved] INFO Generate link [5b6e89b1] for post [source/_posts/GT12.md][ 记忆消散,思念永存--7 Years From Now ] INFO Generated: categories [游戏追踪 (Game Tracker)] for post [source/_posts/GT12.md][ 记忆消散,思念永存--7 Years From Now ] INFO Generate link [2a9244e8] for post [source/_posts/SHADER1.md][ ShaderToy教程 ] INFO Generated: categories [null] for post [source/_posts/SHADER1.md][ ShaderToy教程 ] FATAL { err: Template render error: (unknown path) TypeError: Cannot read property 'slice' of null at Object._prettifyError (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/lib.js:36:11) at /home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:563:19 at Template.root [as rootRenderFunc] (eval at _compile (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:633:18), <anonymous>:69:3) at Template.render (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:552:10) at Environment.renderString (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:380:17) at /home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/extend/tag.js:236:16 at tryCatcher (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/util.js:16:23) at Function.Promise.fromNode.Promise.fromCallback (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:209:30) at Tag.render (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/extend/tag.js:235:20) at Object.onRenderEnd (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/hexo/post.js:426:22) at /home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/hexo/render.js:85:21 at tryCatcher (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:729:18) at _drainQueueStep (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:93:12) at _drainQueue (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:15:14) at processImmediate (internal/timers.js:461:21) { cause: Template render error: (unknown path) TypeError: Cannot read property 'slice' of null at Object._prettifyError (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/lib.js:36:11) at /home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:563:19 at Template.root [as rootRenderFunc] (eval at _compile (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:633:18), <anonymous>:69:3) at Template.render (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:552:10) at Environment.renderString (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/nunjucks/src/environment.js:380:17) at /home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/extend/tag.js:236:16 at tryCatcher (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/util.js:16:23) at Function.Promise.fromNode.Promise.fromCallback (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:209:30) at Tag.render (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/extend/tag.js:235:20) at Object.onRenderEnd (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/hexo/post.js:426:22) at /home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/hexo/lib/hexo/render.js:85:21 at tryCatcher (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/promise.js:729:18) at _drainQueueStep (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:93:12) at _drainQueue (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:102:5) at Immediate.Async.drainQueues (/home/runner/work/HEXO-BLOG/HEXO-BLOG/node_modules/bluebird/js/release/async.js:15:14) at processImmediate (internal/timers.js:461:21), isOperational: true } } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html
> git push @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. The fingerprint for the RSA key sent by the remote host is SHA256:uNiVztksCsDhcc0u9e8BujQXVUpKZIDTMczCvj3tD2s. Please contact your system administrator. Add correct host key in /Users/apple/.ssh/known_hosts to get rid of this message. Offending RSA key in /Users/apple/.ssh/known_hosts:1 RSA host key for github.com has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.