Fork me on GitHub

博客设置语句说明

创建博客文章
1
2
cd /Users/xiaomi/Documents/Python/blog
$ hexo new "博客设置语句说明"
启动本地服务器

可通过:http://localhost:4000/ 在本地预览博客效果

1
$ hexo server

清除缓存(可选操作)
1
$ hexo clean
生成博客文章静态页面

md文章编辑成功后

1
2
cd /Users/xiaomi/Documents/Python/blog
$ hexo generate

将文章部署至github
1
$ hexo deploy
更换主题
1
2
cd /Users/xiaomi/Documents/Python/blog
$ git clone https://github.com/theme-next/hexo-theme-next themes/next

系统会在blog文件的theme文件下创建next主题文件夹,并将主题文件克隆至本地,修改_config.yml文件

-------------本文结束感谢您的阅读-------------