很久以前,就想要写技术博客,写过一段时间CSDN博客,也会在简书上面写一些,也折腾过Jekyll、Hexo,最后还是选择使用Hexo,主题选用了Hexo-theme-hiker,风格简单清新,整体很舒服,个人觉得是很不错的主题。
$ npm install hexo-cli -g
$ hexo init blog
下载Hexo-theme-hiker,置于hexo项目的theme目录下,修改_config.yml文件中的theme为hiker。
$ hexo new "My New Post"
$ hexo new page about
更多: Writing
$ hexo server
更多: Server
$ hexo generate
更多: Generating
同步到git,安装git插件,并修改_config.yml文件中,将deploy下的type设为git
$ npm install hexo-deployer-git –save
$ hexo deploy
直接部署
$ hexo deploy
更多: Deployment