JING@LAPTOP-DEHH91FV MINGW64 /d/MyStuday/git_codelife/Blog $ hexo clean INFO Validating config INFO Deleted database. INFO Deleted public folder.
JING@LAPTOP-DEHH91FV MINGW64 /d/MyStuday/git_codelife/Blog $ hexo g INFO Validating config INFO Start processing INFO Files loaded in 231 ms (node:24780) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:24780) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:24780) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency (node:24780) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (node:24780) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:24780) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency INFO Generated: archives/index.html INFO Generated: index.html INFO Generated: images/algolia_logo.svg INFO Generated: archives/2022/05/index.html INFO Generated: images/apple-touch-icon-next.png INFO Generated: images/avatar.gif INFO Generated: images/cc-by-nc-nd.svg INFO Generated: images/cc-by-nc-sa.svg INFO Generated: images/cc-by-sa.svg INFO Generated: images/cc-by-nd.svg INFO Generated: images/cc-by-nc.svg INFO Generated: images/cc-by.svg INFO Generated: images/favicon-32x32-next.png INFO Generated: images/cc-zero.svg INFO Generated: images/favicon-16x16-next.png INFO Generated: images/logo.svg INFO Generated: js/bookmark.js INFO Generated: css/main.css INFO Generated: js/schemes/muse.js INFO Generated: archives/2022/index.html INFO Generated: lib/anime.min.js INFO Generated: lib/velocity/velocity.min.js INFO Generated: js/motion.js INFO Generated: js/algolia-search.js INFO Generated: js/local-search.js INFO Generated: js/schemes/pisces.js INFO Generated: js/utils.js INFO Generated: js/next-boot.js INFO Generated: lib/font-awesome/css/all.min.css INFO Generated: 2022/05/10/hello-world/index.html INFO Generated: lib/velocity/velocity.ui.min.js INFO Generated: lib/font-awesome/webfonts/fa-regular-400.woff2 INFO Generated: lib/font-awesome/webfonts/fa-brands-400.woff2 INFO Generated: lib/font-awesome/webfonts/fa-solid-900.woff2 INFO 34 files generated in 641 ms
JING@LAPTOP-DEHH91FV MINGW64 /d/MyStuday/git_codelife/Blog $ hexo s INFO Validating config INFO Start processing INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop. (node:17728) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:17728) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:17728) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency (node:17728) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (node:17728) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:17728) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency INFO Bye!
==存在问题==:Site设置的内容(title|subtitle|description)显示中文乱码!
检查发现在生成的静态文件中已经乱码了。推测原因可能是 UltraEdit
编辑_config.yml时改变了文件存储的编码格式,导致
hexo g 过程中读取为乱码。 解决:换为 Visual Studio Code
重新编辑_config.yml编辑文档,纠正乱码,再发布OK!
上传更新
发布到GitHub,输入如下三条命令:hexo clean,
hexo g, hexo d,打开 My Blog
JING@LAPTOP-DEHH91FV MINGW64 /d/MyStuday/git_codelife/Blog $ hexo g INFO Validating config INFO Start processing INFO Files loaded in 224 ms ...省略 INFO 34 files generated in 659 ms
JING@LAPTOP-DEHH91FV MINGW64 /d/MyStuday/git_codelife/Blog $ hexo d INFO Validating config INFO Deploying: git INFO Clearing .deploy_git folder... INFO Copying files from public folder... INFO Copying files from extend dirs... warning: LF will be replaced by CRLF in 2022/05/10/hello-world/index.html. The file will have its original line endings in your working directory ... 省略 The file will have its original line endings in your working directory [master 1408e37] Site updated: 2022-05-11 18:10:48 6 files changed, 27 insertions(+), 27 deletions(-) Enumerating objects: 31, done. Counting objects: 100% (31/31), done. Delta compression using up to 12 threads Compressing objects: 100% (10/10), done. Writing objects: 100% (16/16), 1.42 KiB | 1.42 MiB/s, done. Total 16 (delta 6), reused 0 (delta 0), pack-reused 0 remote: Resolving deltas: 100% (6/6), completed with 4 local objects. To https://github.com/nyjingle/nyjingle.github.io.git 7116a22..1408e37 HEAD -> main branch 'master' set up to track 'https://github.com/nyjingle/nyjingle.github.io.git/main'. INFO Deploy done: git