aboutsummaryrefslogtreecommitdiff
path: root/exampleSite
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-10 00:49:20 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-07-10 00:49:20 +0800
commit77101032aa61cad251fbe02476aa6d1e0df24d74 (patch)
treefeb8cab7c855d92ddc5c9fd383a0608da97f739e /exampleSite
parent85290e5c12c5331bfa43481a73395c6f38b9d845 (diff)
feat(highlight): add support for chroma
BREAKING CHANGE: You need add params to enable `chroma` or `highlight.js` since they are disabled by default.
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml9
1 files changed, 9 insertions, 0 deletions
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 # 是否开启目录