diff --git a/config.toml b/config.toml index 931ad9c25..08c72176f 100644 --- a/config.toml +++ b/config.toml @@ -16,6 +16,14 @@ pluralizeListTitles = false # We do redirects via Netlify's _redirects file, generated by Hugo (see "outputs" below). disableAliases = true + +# Highlighting config (Pygments) +# It is (currently) not in use, but you can do ```go in a content file if you want to. +pygmentsCodeFences = true + +# See https://help.farbox.com/pygments.html +pygmentsStyle = "friendly" + [outputs] home = [ "HTML", "RSS", "REDIR" ] section = [ "HTML", "RSS"] diff --git a/layouts/shortcodes/code.html b/layouts/shortcodes/code.html index 6df49956a..009aeb711 100644 --- a/layouts/shortcodes/code.html +++ b/layouts/shortcodes/code.html @@ -1,5 +1,7 @@ -
{{- .Inner | string -}}
{{ end }}