From 05b042acec44279cfef7eeb9c7ff4ac62f992391 Mon Sep 17 00:00:00 2001 From: Rise <8315221+AmazingRise@users.noreply.github.com> Date: Mon, 18 May 2020 23:13:51 +0800 Subject: Updated Customization (markdown) --- Customization.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3