From 1ed0f8128eebd8760510c33e9f1d64133316ba57 Mon Sep 17 00:00:00 2001 From: David Eisinger Date: Tue, 24 Oct 2023 20:48:55 -0400 Subject: [PATCH] add syntax highlighting --- config.toml | 2 ++ themes/v2/assets/css/style.scss | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 9f4be71..42584e0 100644 --- a/config.toml +++ b/config.toml @@ -11,3 +11,5 @@ enableGitInfo = true [markup.goldmark] [markup.goldmark.renderer] unsafe = true + [markup.highlight] + style = 'nord' diff --git a/themes/v2/assets/css/style.scss b/themes/v2/assets/css/style.scss index 1727469..ad694ea 100644 --- a/themes/v2/assets/css/style.scss +++ b/themes/v2/assets/css/style.scss @@ -147,7 +147,9 @@ img { } pre { - background-color: #ddd; + background-color: #2e3440; + color: #d8dee9; + margin: 0; padding: 1ch 1ch; border-radius: 3px; }