Browse Source

improve syntax/code display

new-gallery
max.mehl 2 years ago
parent
commit
3b6281758a
Signed by: mxmehl GPG Key ID: 2704E4AB371E2E92
  1. 6
      config.toml
  2. 5
      themes/hugo-sustain/static/css/custom.css

6
config.toml

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

5
themes/hugo-sustain/static/css/custom.css

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

Loading…
Cancel
Save