这是一个卡片式风格设计的 Ghost 博客主题。
- 卡片式风格的文章卡片
- 沉浸式的文章阅读体验
- 清晰明了的首页文章信息统计
- 漂亮的技能雷达图和文章标签词云图以及文章年度数量统计图
- 程序员风格的个人信息页面展示
- 极致简单的使用和一体化的配置
- 支持代码高亮
首先,当你阅读到这里的时候,你已经拥有了自己的 Ghost
博客,你可以下载稳定分支 master
的代码,也可以使用 git
命令直接下载,命令如下:
git clone https://github.com/luokangyuan/ghost-blog-theme.git
修改配置文件 /var/www/ghost/content/settings$ vim routes.yaml
routes:
/about/me/: about-me
/articles/classification/: articles-classification
/articles/file/: articles-file
/recard/list/people/: recard-list-people
/friend/ship/: friend-ship
collections:
/:
permalink: /{slug}/
template: index
taxonomies:
tag: /tag/{slug}/
author: /author/{slug}/
在Integrations
新增一个theme
用于接口认证,修改主题中的/assets/js/config.js
中的key
和url
。
/** 访问接口配置*/
const api = new GhostContentAPI({
url: 'http://localhost:2370',
key: '3ca5b1a638723b78f35b7d4a07',
version: "v3"
});
主题中的/assets/js/config.js
包含了主题所有的可配置的信息,根据自己的需求修改即可。