解决了一些小问题

🎈解决了hexo d 命令的错误

🎈添加了评论 gitalk

1. 执行命令hexo d时报错

执行上传文档命令hexo d时 报错。

1.1报错代码

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
34
35
36
37
38
39
40
41
42
$ hexo d
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.8.0
Documentation: https://theme-next.js.org
========================================
Usage: hexo <command>

Commands:
clean Remove generated files and cache.
config Get or set configurations.
deploy Deploy your website.
douban Generate pages from douban
generate Generate static files.
help Get help on a command.
init Create a new Hexo folder.
list List the information of the site
migrate Migrate your site from other system to Hexo.
new Create a new post.
publish Moves a draft post from _drafts to _posts folder.
render Render files with renderer plugins.
server Start the server.
version Display version information.

Global Options:
--config Specify config file instead of using _config.yml
--cwd Specify the CWD
--debug Display all verbose messages in the terminal
--draft Display draft posts
--safe Disable all plugins and scripts
--silent Hide output on console

For more help, you can use 'hexo help [command]' for the detailed information
or you can check the docs: http://hexo.io/docs/

.deploy_git 文件夹删除后在执行 命令hexo deploy 完美解决。

注意:hexo d 跟 插件hexo-douban的命令重复,所以要打全称hexo deploy

1.2成功上传代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$ hexo deploy
INFO Validating config
INFO ==================================
███╗ ██╗███████╗██╗ ██╗████████╗
████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝
██╔██╗ ██║█████╗ ╚███╔╝ ██║
██║╚██╗██║██╔══╝ ██╔██╗ ██║
██║ ╚████║███████╗██╔╝ ██╗ ██║
╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝
========================================
NexT version 8.8.0
Documentation: https://theme-next.js.org
========================================
INFO Deploying: git
INFO Setting up Git deployment...
Initialized empty Git repository in E:/blog/.deploy_git/.git/
[master (root-commit) 5c5bd0a] First commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 placeholder
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
[master 8b9c545] Site updated: 2022-04-10 01:10:05

2. 新添加了gitalk评论系统😉

在交换友链的时候 网上好朋友提出没有打开评论,刚好最近不是很忙,就折腾一下把评论打开了。使用了next 主题中自带 gitalk评论系统 比较省事。还有一方面,大部分的评论,都要认证。我对认证这个东西很是反感。

2.1 隐患:

部署成功发现,这个评论没有审核功能,同时我也开始担心没有审核功能,很容易成为广告的聚集地,但是需要github账号才能登录,(情况会好一点把的-O-)平时也懒的打理,所以先用一段时间,不行就关闭了。

2.2 部署教程:

参考的这位大神的教程](https://blog.csdn.net/a171232886/article/details/121206824)

具体的步骤就不贴出来了,可以点击链接,到他的文章看看,也增加点,点击数量,我也不知道他是不是原创,但是我是参考了他的文章,才能部署成功的,他在我这里就是原创,这话可能有些极端哈哈。

-------------本文结束感谢您的阅读-------------