summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Elliott Hand <jhand@hawaii.edu>2026-07-20 19:39:40 -1000
committerJoseph Elliott Hand <jhand@hawaii.edu>2026-07-20 19:39:40 -1000
commit4bd6e1ee6aac058eaae081ce9a7b31295a19eab1 (patch)
tree6f492861f887d0986692bf2fde09e1bc2d214dc3
parent449bfa0b8e72b296f8b7b0dd83ee40fce46df710 (diff)
downloadjosephhand.space-4bd6e1ee6aac058eaae081ce9a7b31295a19eab1.tar.gz
Improve code block rendering
Signed-off-by: Joseph Elliott Hand <jhand@hawaii.edu>
-rw-r--r--hugo.toml4
-rw-r--r--static/style.css6
2 files changed, 10 insertions, 0 deletions
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;
+}