更换 Jekyll 博客的语法高亮风格
Rouge 是 jekyll 3 默认的语法高亮插件。
Rouge 内置了几套样式,可以使用 rougify style monokai > syntax.css
命令生成你想要的风格文件。
查看可用的 theme
$ miaoxinguo.github.io git:(master) rougify help style
usage: rougify style [<theme-name>] [<options>]
Print CSS styles for the given theme. Extra options are
passed to the theme. Theme defaults to thankful_eyes.
options:
--scope (default: .highlight) a css selector to scope by
available themes:
base16, base16.dark, base16.monokai, base16.monokai.light, base16.solarized, base16.solarized.dark, colorful, github, gruvbox, gruvbox.light, molokai, monokai, monokai.sublime, thankful_eyes
在 available themes 中选一个想用的就生成文件, 然后替换你的 style.css 就可以了。