Browse Source

improve syntax/code display

max.mehl 1 week ago
parent
commit
3b6281758a
No account linked to committer's email address
2 changed files with 9 additions and 2 deletions
  1. 4
    2
      config.toml
  2. 5
    0
      themes/hugo-sustain/static/css/custom.css

+ 4
- 2
config.toml View File

@@ -2,8 +2,10 @@ baseurl = "https://mehl.mx/"
2 2
 languageCode = "en-GB"
3 3
 title = "Max Mehl"
4 4
 theme = [ "hugo-sustain", "hugo-cloak-email", "hugo-mastodon-comments", "hugo-snap-gallery" ]
5
-PygmentsStyle = "friendly"
6
-pygmentsCodeFences = true
5
+
6
+[markup.highlight]
7
+codeFences = true
8
+style = "emacs"
7 9
 
8 10
 [blackfriday]
9 11
 # preserves linebreaks, and transforms to <br />

+ 5
- 0
themes/hugo-sustain/static/css/custom.css View File

@@ -151,3 +151,8 @@ figure.pull-left {
151 151
   display: flex;
152 152
   align-items: center;
153 153
 }
154
+
155
+/* CODE / SYNTAX */
156
+pre code {
157
+  white-space:pre;
158
+}

Loading…
Cancel
Save