From 4bd6e1ee6aac058eaae081ce9a7b31295a19eab1 Mon Sep 17 00:00:00 2001 From: Joseph Elliott Hand Date: Mon, 20 Jul 2026 19:39:40 -1000 Subject: Improve code block rendering Signed-off-by: Joseph Elliott Hand --- hugo.toml | 4 ++++ static/style.css | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/hugo.toml b/hugo.toml index d3cc003..e821679 100644 --- a/hugo.toml +++ b/hugo.toml @@ -2,6 +2,10 @@ baseURL = 'https://josephhand.space/' languageCode = 'en-us' title = 'Joseph Hand' +[markup] + [markup.highlight] + style = "pygments" + [menus] [[menus.nav]] name = 'code' diff --git a/static/style.css b/static/style.css index 15e9ee7..7d813b4 100644 --- a/static/style.css +++ b/static/style.css @@ -68,3 +68,9 @@ span.email span:nth-child(1) { vertical-align: super; font-size: 0.5rem; } + +pre { + padding: 0 1em; + display: block; + overflow-x: scroll; +} -- cgit v1.2.3