前言
搭建一个个人博客其实也不是很难,只要敢于尝试就会成功。
搭建所需要的工具
- git
- node
- Visual Studio Code (编辑软件)
下面都是大佬写的教程,有小伙伴不明白怎么安装的可以打开链接,跟着图片走,都是些很详细的教程。
【node 安装教程】{https://www.cnblogs.com/zhouyu2017/p/6485265.html}
【git 安装教程】{https://www.cnblogs.com/xueweisuoyong/p/11914045.html}
【视频教程】{https://www.bilibili.com/video/BV1mU4y1j72n?spm_id_from=333.337.search-card.all.click}
【文字教程】{https://hexoscript.gitbook.io/hexo-script/shi-yong-bu-zhou/yi-jian-an-zhuang-hexo-bo-ke}
git和node都安装好以后我们开始安装hexo
首先,打开D盘——>新建一个名为bolg文件夹【若不喜欢blog可以换一个尽量选择英文名,防止出现错误】——>进入blog文件夹——>右击——>选择 Git Bash Here【这里的 Git Bash Here 是安装完git才会有的】——>输入代码 npm install -g hexo ——>就完成了若不放心即可输入[hexo -v]查看结果显示版本号就代表完成了。
搭建仓库
- 【github网站】{https://github.com}
- 【仓库的搭建】{https://blog.csdn.net/frontend_frank/article/details/102459957}
关于密钥的安装方式
【git安装方式】https://www.cnblogs.com/yjlch1016/p/9692840.html
添加主题
【github主题】https://blog.csdn.net/qq_38354978/article/details/82862232
关于会出现的一些问题
- 【npm不是内部或外部命令,也不是可运行的程序 或批处理文件】{https://blog.csdn.net/wangji5487/article/details/103887107}
- 【hexo不是内部或外部命令,也不是可运行的程序】{https://blog.csdn.net/qq_27093465/article/details/72954725}
超链接
【Visual Studio Code 下载地址】{https://code.visualstudio.com}
【node 下载地址】{https://nodejs.org}
【git 下载地址】{https://git-scm.com}