Hexo Learning Record

hexo × github


目录索引

2020/3/09 利用hexo在github上创建个人博客
2020/3/10 更换hexo博客主题为icarus
2020/3/11 开始学习修改icarus主题配置文件
2020/3/12 使用valine开启评论功能


2020/3/09 利用hexo在github上创建个人博客

  • 一直想有一个私人的空间记录自己不管是日常生活还是各种知识学习,b站真是个好东西,30分钟自主搭建成功自己的小网页,以后可以好好耍一耍了
  • 此处附上hexo入门视频,感谢网络

2020/3/10 更换hexo博客主题为icarus

缺少cheerio文件或库

  • 首先更换主题完后进行hexo指令发现直接出现错误,以为是download  zip直接下载剪切进去太粗暴,于是又在github上直接clone到icarus文件夹中,问题还有,定睛一看错误的具体内容,有个叫cheerio的东西没安装,百度咋办,安装呗

npm install cheerio

无法部署到远程github网站

  • 按好了之后终于可以套在自己的文章上了(虽然啥都没写),localhost/4000上预览之后准备推到github网站上,结果出了第二个问题,无法deploy到git,爷气死了,这又是啥玩意啊,不过还好百度找到了答案

hexo更新到3.0之后,deploy的type的github需要改成git
npm install hexo-deployer-git --save 改了之后执行,然后再部署试试


2020/3/11 开始学习修改icarus主题配置文件


2020/3/12 使用valine开启评论功能

Nice to meet you,Hexo

basic instruction

hexo init   –>初始化一个新博客
hexo n  –>新建一个博客文档
hexo s   –>加载本地博客服务器

hexo clean –>清理数据库
hexo g  –>生成、更新博客

hexo d  –>部署到远端,即github下的html网站

update flow

hexo clean –> hexo g –> hexo s –> hexo d

use hexo theme from github:

  1. git clone https://github.com/xxx.git theme/xxx
  2. _config.yml 中替换theme为新文件夹名称
  3. hexo clean –> hexo g –> hexo s –> hexo d
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×