summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorReorx <novoreorx@gmail.com>2022-04-15 00:55:41 +0800
committerReorx <novoreorx@gmail.com>2022-04-15 00:55:41 +0800
commit33c1ba12e22ec939cd4c85186c243b6617a28527 (patch)
treee08a98331141711727c94ca47653853ecde34872 /README.md
parent60380fe684fb6db6c75ce9f4863f1047e6566649 (diff)
use hugo's builtin Chroma for code highlight
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index 457842a..225cc54 100644
--- a/README.md
+++ b/README.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/).