这是我得用Hexo写的第一篇博客,感谢Hexo官网的教程。下面是一些简单使用Hexo的方法。会随着我对Hexo的了解不断更新。
快速开始
创建一篇新文章
1 | $ hexo new "Hello-world" |
运行服务器
1 | $ hexo server |
生成静态文件
1 | $ hexo generate |
部署网站
1 | $ hexo deploy |
使用数学公式
Hexo并不原生支持数学公式,需要安装插件mathjax。
1 | $ npm install hexo-math --save |
在站点配置文件 _config.yml 中添加:
1 | math: |