Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Chucheng <me@wangchucheng.com>2021-01-31 18:20:07 +0300
committerWang Chucheng <me@wangchucheng.com>2021-01-31 18:20:07 +0300
commit01a9ea34ab121f7210a306a4bbc125c5e84e73aa (patch)
tree249b085cb891aa3ba35a17e1a62cc2f43c000e5a /exampleSite
parent9fcd3891b1c27a73e29490cc050c85452178b837 (diff)
feat: add custom highlightjs languages
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config/_default/params.yaml11
1 files changed, 11 insertions, 0 deletions
diff --git a/exampleSite/config/_default/params.yaml b/exampleSite/config/_default/params.yaml
index 0d98858..ff3bd53 100644
--- a/exampleSite/config/_default/params.yaml
+++ b/exampleSite/config/_default/params.yaml
@@ -19,6 +19,17 @@ icon: images/icon.png
publisherName: C. Wang
publisherLogo:
+highlight:
+ handler: highlightjs
+
+ highlightjs:
+ # highlight.js doesn't bundle every language. So please specify additional languages you want here.
+ # See https://github.com/highlightjs/cdn-release/tree/master/build/languages for available languages.
+ languages:
+ - dart
+ # See https://github.com/highlightjs/cdn-release/tree/master/build/styles for available styles.
+ style: solarized-light
+
math:
handler: katex