From 78cb92a330241ec6a989af3df83854766e270cb6 Mon Sep 17 00:00:00 2001 From: revsuine Date: Tue, 19 Nov 2024 20:46:27 +0000 Subject: [PATCH 1/2] enable unsafe rendering (ie rendering raw html) --- hugo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hugo.toml b/hugo.toml index 9fec8a7..99a794f 100644 --- a/hugo.toml +++ b/hugo.toml @@ -12,6 +12,11 @@ theme = 'boxgruv' [pagination] pagerSize = 5 +[markup] + [markup.goldmark] + [markup.goldmark.renderer] + unsafe = true + ### TERMINAL THEME CONFIG ### # [params] From fe204e6a1f2fd0c716b3d1d8108323d2f38a851a Mon Sep 17 00:00:00 2001 From: revsuine Date: Tue, 19 Nov 2024 20:48:46 +0000 Subject: [PATCH 2/2] configure table of contents --- hugo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hugo.toml b/hugo.toml index 99a794f..49af646 100644 --- a/hugo.toml +++ b/hugo.toml @@ -13,6 +13,10 @@ theme = 'boxgruv' pagerSize = 5 [markup] + [markup.tableOfContents] + ordered = true + # start by listing h1s + startLevel = 1 [markup.goldmark] [markup.goldmark.renderer] unsafe = true