From e7465d33131d5986e868be3091d413703cd91c9c Mon Sep 17 00:00:00 2001 From: verdant Date: Sat, 7 Feb 2026 15:00:02 +0800 Subject: chore: tweak some configuration --- hugo.toml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/hugo.toml b/hugo.toml index 5df48cb..b2835e5 100644 --- a/hugo.toml +++ b/hugo.toml @@ -16,11 +16,35 @@ copyright = "Copyright © 2024, GlowIsle." path = "" # 保持路径在根目录 [markup] + defaultMarkdownHandler = "goldmark" [markup.highlight] + codeFences = true + guessSyntax = true + lineNos = true + lineNumbersInTable = true + noClasses = false style = "onedark" + tabWidth = 4 -[markup.goldmark.renderer] -unsafe = true + [markup.goldmark] + [markup.goldmark.extensions] + definitionList = true + footnote = true + linkify = true + strikethrough = true + table = true + taskList = true + typographer = true + + [markup.goldmark.parser] + attribute = true + autoHeadingID = true + autoHeadingIDType = "github" + + [markup.goldmark.renderer] + unsafe = true + hardWraps = false + xHTML = false [taxonomies] category = "categories" -- cgit v1.2.3