From 77101032aa61cad251fbe02476aa6d1e0df24d74 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Tue, 10 Jul 2018 00:49:20 +0800 Subject: feat(highlight): add support for chroma BREAKING CHANGE: You need add params to enable `chroma` or `highlight.js` since they are disabled by default. --- exampleSite/config.toml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'exampleSite') diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 0eb28e5..14fa960 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -7,6 +7,12 @@ enableRobotsTXT = true enableEmoji = true theme = "even" +# Syntax highlighting by Chroma. NOTE: Don't enable `highlightInClient` and `chroma` at the same time! +pygmentsOptions = "linenos=table" +pygmentsCodefences = true +pygmentsUseClasses = true +pygmentsCodefencesGuessSyntax = true + hasCJKLanguage = true # has chinese/japanese/korean ? # 自动检测是否包含 中文\日文\韩文 paginate = 5 # 首页每页显示的文章数 disqusShortname = "" # disqus_shortname @@ -65,6 +71,9 @@ copyright = "" # default: author.name ↓ # 默认为下面配 # show word count and read time ? # 是否显示字数统计与阅读时间 moreMeta = false + # Syntax highlighting by highlight.js + highlightInClient = false + # 一些全局开关,你也可以在每一篇内容的 front matter 中针对单篇内容关闭或开启某些功能,在 archetypes/default.md 查看更多信息。 # Some global options, you can also close or open something in front matter for a single post, see more information from `archetypes/default.md`. toc = true # 是否开启目录 -- cgit v1.2.3