diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-18 23:42:26 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-18 23:42:26 -0400 |
commit | 31485fa81b3da8b22798b8ff389f155dd0557ab9 (patch) | |
tree | 8dc9943f46b806b10421092bc80fe5fa7d4bb28d | |
parent | 8c0baf2490d8f6ba0c77be1053d1309e7fd13e85 (diff) | |
download | pablotron.org-31485fa81b3da8b22798b8ff389f155dd0557ab9.tar.bz2 pablotron.org-31485fa81b3da8b22798b8ff389f155dd0557ab9.zip |
config.toml: use classes instead of inline styles for syntax highlighting
-rw-r--r-- | config.toml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/config.toml b/config.toml index 4d97c77..978dda7 100644 --- a/config.toml +++ b/config.toml @@ -21,3 +21,39 @@ theme = "hugo-pt2021" posts = "/:year/:month/:day/:slug" articles = "/articles/:slug" projects = "/:slug" + +[markup] + [markup.tableOfContents] + startLevel = 2 + endLevel = 4 + ordered = false + + # set chrome syntax highlighting; use all defaults except + # for one directive: + # + # noClasses = false + # + # This tells chroma to use classes instead of inline styles + # for syntax highlighting. + # + # After that I ran `hugo genchromaclasses` to generate a static + # stylesheet for chroma: + # + # hugo gen chromaclasses --style=monokai > \ + # themes/hugo-pt2021/assets/chroma.css + # + # And finally, I imported chroma.css into my style.sass: + # + # / + [markup.highlight] + anchorLineNos = false + codeFences = true + guessSyntax = false + hl_Lines = '' + lineAnchors = '' + lineNoStart = 1 + lineNos = false + lineNumbersInTable = true + noClasses = false + style = 'monokai' + tabWidth = 4 |