English | 简体中文
一个好看而又迷人的 Ghost 博客主题,对中文支持更好。博客的 UI 设计参考了 默认的 Casper 主题和 dribbble 上的一些设计图。
- 响应式布局
- 导航栏
- 代码高亮
- Disqus 评论
- 邮箱订阅
- 打赏
- 分享
- 时间轴
- 搜索
- 可配置
克隆仓库并安装依赖
$ git clone https://github.com/hezhii/poppy.git
$ cd poppy
$ yarn install
首先需要安装本地版 Ghost,然后创建一个软链接把 poppy 链接到 ghost/content/themes
。
然后启动 Ghost:
$ cd <ghost>
$ ghost start
Ghost 启动完成后,可以通过 http://localhost:2368
访问。我们需要在 Ghost 的管理页面启用 poppy 主题。
启动 Poppy 后,进入到 poppy 目录下:
$ yarn dev
现在,你可以编辑 /src
目录下的文件修改主题,它们会自动打包到 /assets
目录下。
$ cd poppy
$ yarn build
这个命令会把主题打包到 dist/poppy.zip
中,然后我们可以在 Ghost 后台直接上传压缩包以安装主题。
你也可以在 Github 上直接下载压缩包。