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

github.com/AmazingRise/hugo-theme-diary.wiki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRise <8315221+AmazingRise@users.noreply.github.com>2020-05-18 18:13:51 +0300
committerRise <8315221+AmazingRise@users.noreply.github.com>2020-05-18 18:13:51 +0300
commit05b042acec44279cfef7eeb9c7ff4ac62f992391 (patch)
tree6d390c24e57552373e85b85559b88edabf43a250
parent24486a2ed8e75fee22d81fa26d83a6c9fbdaebb6 (diff)
Updated Customization (markdown)
-rw-r--r--Customization.md30
1 files changed, 29 insertions, 1 deletions
diff --git a/Customization.md b/Customization.md
index 77e3788..53c42a8 100644
--- a/Customization.md
+++ b/Customization.md
@@ -19,6 +19,8 @@ Thank you for your support!
* [Add Favicon](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#add-favicon)
+* [About Highlight](https://github.com/AmazingRise/hugo-theme-diary/wiki/Customization#about-highlight)
+
## Change color scheme
(From *theme*'s root directory) Go to `assets/scss/journal.scss`.
@@ -121,4 +123,30 @@ Add it to your site's `config.toml`:
```toml
[params]
favicon = "Your Favicon Address"
-``` \ No newline at end of file
+```
+
+## About Highlight
+
+Highlight area is **generated by Hugo**, not an implementation by me. Though it is not a part of this theme, but I'll still provide some information for Hugo beginners.
+
+Highlight is enabled by default in Hugo, with a Monokai style. To change this style, you can add some configurations in `config.toml`.
+
+```toml
+[markup]
+ [markup.highlight]
+ codeFences = true
+ guessSyntax = false
+ hl_Lines = ""
+ lineNoStart = 1
+ lineNos = false
+ lineNumbersInTable = true
+ noClasses = true
+ style = "monokai"
+ tabWidth = 4
+```
+
+You can modify the value of `style` to your taste. Available values are listed [here](https://xyproto.github.io/splash/docs/all.html).
+
+**NOTE:** If you have some questions about highlight, please **DO NOT post it here**. That's implemented by Hugo official, not the theme creators.
+
+For more details, [see here](https://gohugo.io/getting-started/configuration-markup#highlight). \ No newline at end of file