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 Lepretre <thibaud.lepretre@gmail.com>2019-07-14 09:38:52 +0300
committerThibaud Lepretre <thibaud.lepretre@gmail.com>2021-08-11 15:01:16 +0300
commit70e72b485a793b94f559988b628e65f335989191 (patch)
treecd7010346052f5bfa2fdd92ae7a4182d8ca7eb7f
parentc73fe29e5e58fcd1bb1dfe52b08a4423e8f08d3a (diff)
Update config.toml to add missing lang
-rw-r--r--exampleSite/config.toml56
1 files changed, 52 insertions, 4 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 84b2321..21720d7 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -98,6 +98,10 @@ canonifyurls = true
url = "/index.xml"
[params]
+ # Syntax highlighter, possible choice between: "highlight.js" and "prism.js"
+ # You can comment it to disable syntax highlighting
+ syntaxHighlighter = "highlight.js"
+
# Customize date format use to render blog post date, categories and other
# You must use date format used by Go Time package https://golang.org/pkg/time/
# Months (not work with short month like "jan", "feb", etc) are translated if translation exists on i18n folders
@@ -107,10 +111,6 @@ canonifyurls = true
# Global keywords configuration. Following keywords will be add to every pages
# keywords = ["development", "next-gen"]
- # Syntax highlighter, possible choice between: "highlight.js" (recommanded) and "prism.js" (experimental)
- # You can comment it to disable syntax highlighting
- syntaxHighlighter = "highlight.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
@@ -181,6 +181,54 @@ canonifyurls = true
# they have to be referred from static root. Example
# [[params.customJS]]
# src = "js/myscript.js"
+ [[params.customJS]]
+ src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/go.min.js"
+ integrity = "sha256-LVuWfOU0rWFMCJNl1xb3K2HSWfxtK4IPbqEerP1P83M="
+ crossorigin = "anonymous"
+ async = true
+ defer = true
+
+ [[params.customJS]]
+ src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/less.min.js"
+ integrity = "sha256-EB4Qe5B8kOTN9/r65YrBPJ3VkDRJa8sSVqqaIakt0gU="
+ crossorigin = "anonymous"
+ async = true
+ defer = true
+
+ [[params.customJS]]
+ src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/puppet.min.js"
+ integrity = "sha256-LWiDV1Ge/4ULbV/tJh9N8NTILGIbsPEdnGQ24CrjBzo="
+ crossorigin = "anonymous"
+ async = true
+ defer = true
+
+ [[params.customJS]]
+ src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/scss.min.js"
+ integrity = "sha256-/27cA5aA9DgzXPb747VxVTzwPG/X5tihoKySMSq3bwk="
+ crossorigin = "anonymous"
+ async = true
+ defer = true
+
+ [[params.customJS]]
+ src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/stylus.min.js"
+ integrity = "sha256-CFwICvPAUcOBI6YRYZMf4OkyePvFtdG7n7Wl9UNZwx0="
+ crossorigin = "anonymous"
+ async = true
+ defer = true
+
+ [[params.customJS]]
+ src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/swift.min.js"
+ integrity = "sha256-zYofLVsdq2KkS4cVGc6/8gTKb7lPsTLk1vs37g9aYj0="
+ crossorigin = "anonymous"
+ async = true
+ defer = true
+
+ [[params.customJS]]
+ src = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/yaml.min.js"
+ integrity = "sha256-tvm0lHsuUZcOfj/0C9xJTU4OQx5KpUgxUcAXLX5kvwA="
+ crossorigin = "anonymous"
+ async = true
+ defer = true
# Sharing options
# Comment and uncomment to enable or disable sharing options