From aede7923d709e30e18b9eb143fb1088ac27e0c38 Mon Sep 17 00:00:00 2001 From: taurusxin Date: Thu, 19 Oct 2023 10:43:21 +0800 Subject: [PATCH] test: code highlight with new font --- assets/scss/custom.scss | 7 +++++++ layouts/partials/head/custom.html | 16 ++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/assets/scss/custom.scss b/assets/scss/custom.scss index 87593a5..cfc5e7b 100644 --- a/assets/scss/custom.scss +++ b/assets/scss/custom.scss @@ -74,3 +74,10 @@ } } } + +/** +* Global font family +*/ +:root { + --code-font-family: "Jetbrains Mono", Menlo, Monaco, Consolas, "Courier New", var(--zh-font-family), monospace; +} \ No newline at end of file diff --git a/layouts/partials/head/custom.html b/layouts/partials/head/custom.html index 4d79e09..a2b6104 100644 --- a/layouts/partials/head/custom.html +++ b/layouts/partials/head/custom.html @@ -12,6 +12,22 @@ + + + + + + +