diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-15 00:55:41 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-15 00:55:41 +0800 |
| commit | 33c1ba12e22ec939cd4c85186c243b6617a28527 (patch) | |
| tree | e08a98331141711727c94ca47653853ecde34872 /exampleSite/content/docs/papermodx-new-features.md | |
| parent | 60380fe684fb6db6c75ce9f4863f1047e6566649 (diff) | |
use hugo's builtin Chroma for code highlight
Diffstat (limited to 'exampleSite/content/docs/papermodx-new-features.md')
| -rw-r--r-- | exampleSite/content/docs/papermodx-new-features.md | 12 |
1 files changed, 12 insertions, 0 deletions
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/). |
