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

github.com/kakawait/hugo-tranquilpeak-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibaud LeprĂȘtre <thibaud.lepretre@gmail.com>2017-11-02 00:25:19 +0300
committerThibaud LeprĂȘtre <thibaud.lepretre@gmail.com>2017-11-02 00:25:19 +0300
commitae210f6b361e32c70758b432e176f0cdd92053ce (patch)
tree85f9a34a0d88f3d916ed96cfdbdf9c60fedb60b2 /exampleSite
parent8c137dc5d3d0669c7ae6df144463d52c4949db1e (diff)
Add prism.js support
With new syntax highlighter prism.js, you have to configure which syntax highlighter you want to use between _highlight.js_ and _prism.js_. **However if you don't configure it, no syntax highligh will be apply** (where previously _highlight.js_ was forced by default). Please upgrade you're `config.toml` (you can checkout `exampleSite/config.toml` to see sample) to re-add _highlight.js_ as syntax highlighter (except if you don't need it): ```toml [params] syntaxHighlighter = "highligth.js" ``` fixes #24
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml4
1 files changed, 4 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index b116b1f..00a924d 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -107,6 +107,10 @@ canonifyurls = true
# Global keywords configuration. Following keywords will be add to every pages
# keywords = ["development", "next-gen"]
+ # Syntax highlighter, possible choice between: "highligth.js" (recommanded) and "prism.js" (experimental)
+ # You can comment it to disable syntax highligthing
+ syntaxHighlighter = "highligth.js"
+
# Hide sidebar on all article page to let article take full width to improve reading, and enjoy wide images and cover images. (true: enable, false: disable)
clearReading = true