How to use your Hexo

Abstract

Hexo作为刚开始接触github博客的傻瓜式部署非常便利,但说实话我不是很喜欢当下这个模板,以后大概率会换的。这篇文章则更加简单,实际上就是记录一下Hexo的一系列操作——至少方便我每次更新我的blog。
PS:本文的题目参考了知名动画电影驯龙高手:How to Train Your Dragon。

Content

install

blogs

基本操作

预览:hexo s
新建:hexo new filename
生成:hexo g
上传:hexo d——其实用hexo clean && hexo g && hexo d可能会更好。

img

在Hexo中插入图片,需要安装插件:
npm install hexo-asset-img --save
hexo clean && hexo g && hexo s

加密

人都得有点隐私:
npm install hexo-blog-encrypt --save

Reference

https://zhuanlan.zhihu.com/p/392994381