为GitHub页面设置Ghost博客

  |   ghost github

我想要使用Ghost构建自己的静态GitHub页面

启动Ghost

ghost start

下载buster工具

$ git clone https://github.com/axitkhurana/buster

在buster文件进入buster文件:

$ cd buster

从本地运行的Ghost实例生成静态页面

$ python buster.py generate --domain=http://localhost:2368

预览生成的内容localhost:9000

$ python buster.py preview

提交并将更改静态文件部署到Github存储库

$ python buster.py deploy

如果编写新博客帖子或者更新现有的帖子,只需启动Ghost,编辑,然后生成和部署静态页面