预览:https://xitu.github.io/juejin-markdown-themes/
在文章内容前加上 front matter 格式的元信息:
---
theme: juejin
highlight: juejin
---
使用 theme 指定主题
| 主题 | 作者 |
|---|---|
| smartblue | 掘金 GitHub |
| cyanosis | 掘金 GitHub |
| channing-cyan | 掘金 GitHub |
使用 highlight 指定主题,可以使用 highlight.js 中的所有样式:
- 使用默认模板创建一个公开的仓库(点击绿色的 Use this template 按钮)
- 将其中的
juejin.scss替换为自己创作的样式,目前支持 Sass,Less 和 CSS - Fork 此仓库并克隆到本地,在
themes.js文件中指明样式文件的路径,ref为 commit hash - 在
README.md中「社区主题」章节中添加你的主题和作者信息 - 提交 pull request
MIT