From 3b0cc318a42b141a0c7f4b26e51258bb4b402133 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Sun, 10 Nov 2024 18:16:03 -0300 Subject: add line numbers, change style to gruvbox. --- hugo.toml | 4 ++ layouts/partials/custom_head.html | 7 ++- themes/hugo-bearblog/layouts/partials/style.html | 58 +++++++++++------------- 3 files changed, 36 insertions(+), 33 deletions(-) diff --git a/hugo.toml b/hugo.toml index d6edc8e..95a9ed8 100644 --- a/hugo.toml +++ b/hugo.toml @@ -19,6 +19,10 @@ ignoreErrors = ["error-disable-taxonomy"] blog = "/blog/:slug" tags = "/tags/:slug" +[markup.highlight] + style = 'gruvbox' + lineNos = true + [params] # The "description" of your website. This is used in the meta data of your generated html. description = "a lowercase only blog, purely for aesthetics" diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html index 523b6cc..cbb24d8 100644 --- a/layouts/partials/custom_head.html +++ b/layouts/partials/custom_head.html @@ -10,9 +10,12 @@ ul.blog-posts li a:visited { color:#ffc069; } - code { + p code, li code { color: black; - background-color: #ffc069; + border-radius: 2px; + padding-right: 1px; + padding-left: 1px; + background-color: #ffc069; } diff --git a/themes/hugo-bearblog/layouts/partials/style.html b/themes/hugo-bearblog/layouts/partials/style.html index e7aa731..71dcba6 100644 --- a/themes/hugo-bearblog/layouts/partials/style.html +++ b/themes/hugo-bearblog/layouts/partials/style.html @@ -1,11 +1,16 @@ + +