summaryrefslogtreecommitdiff
path: root/exampleSite/content/docs
diff options
context:
space:
mode:
Diffstat (limited to 'exampleSite/content/docs')
-rw-r--r--exampleSite/content/docs/faq.md31
-rw-r--r--exampleSite/content/docs/papermodx-new-features.md12
2 files changed, 19 insertions, 24 deletions
diff --git a/exampleSite/content/docs/faq.md b/exampleSite/content/docs/faq.md
index 0a2f879..6ec0fd9 100644
--- a/exampleSite/content/docs/faq.md
+++ b/exampleSite/content/docs/faq.md
@@ -250,32 +250,15 @@ ex.
## Using Hugo's Syntax highlighter "chroma"
-1. Set hugo's markdown styling in site `config.yml`
-
- ```yml
- markup:
- highlight:
- # anchorLineNos: true
- codeFences: true
- guessSyntax: true
- lineNos: true
- # noClasses: false
- style: monokai
- ```
-
-2. If you want `lineNos: true`, the background won't be proper.
- This will only work with `noClasses: false` or `pygmentsUseClasses: true`.
- Read [Generate Syntax Highlighter CSS](https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css)
-
- Add the following to `assets/css/extended/custom.css`
+Set hugo's markdown styling in site `config.yml`
- ```css
- .chroma {
- background-color: unset;
- }
- ```
+```yml
+markup:
+ highlight:
+ noClasses: false
+```
- More Info : [Configure Markup - Highlight](https://gohugo.io/getting-started/configuration-markup#highlight)
+`noClasses` has to be `false` to make highlight color follows the theme.
---
diff --git a/exampleSite/content/docs/papermodx-new-features.md b/exampleSite/content/docs/papermodx-new-features.md
index 2f58b0a..0f2cc12 100644
--- a/exampleSite/content/docs/papermodx-new-features.md
+++ b/exampleSite/content/docs/papermodx-new-features.md
@@ -99,6 +99,18 @@ menu:
```
+## Highlight code with Chroma, no bullshit
+
+PaperMod uses highlight.js to highlight code blocks.
+In PaperModX, we use Chroma which is the recommended way in Hugo's
+[official docs](https://gohugo.io/content-management/syntax-highlighting/#:~:text=Hugo%20uses%20Chroma%20as%20its%20code%20highlighter%3B%20it%20is%20built%20in%20Go%20and%20is%20really%2C%20really%20fast),
+thus changing theme is easily supported.
+
+By default the themes are `github` for light and `dracula` for dark,
+you can change it by adding `chroma-light.css` and `chroma-dark.css`
+in site's `assets/css/lib` directory.
+
+
## Social icons from Simple Icons
Add social icons with `-simple` suffix from [Simple Icons](https://simpleicons.org/).