From 3b12c922ac0873d9a5b41435ddb25c3f84f44368 Mon Sep 17 00:00:00 2001 From: geekifan Date: Sun, 11 May 2025 11:25:44 +0800 Subject: [PATCH] refactor: separate markup config --- config/_default/markup.toml | 23 +++++++++++++++++++++++ hugo.toml | 23 ----------------------- 2 files changed, 23 insertions(+), 23 deletions(-) create mode 100644 config/_default/markup.toml diff --git a/config/_default/markup.toml b/config/_default/markup.toml new file mode 100644 index 0000000..fa790c5 --- /dev/null +++ b/config/_default/markup.toml @@ -0,0 +1,23 @@ +[highlight] + anchorLineNos = false + codeFences = true + guessSyntax = true + hl_Lines = '' + hl_inline = false + lineAnchors = '' + lineNoStart = 1 + lineNos = true + lineNumbersInTable = true + noClasses = false + tabWidth = 4 + wrapperClass = 'highlight' + +[goldmark.parser] + wrapStandAloneImageWithinParagraph = false + +[goldmark.parser.attribute] + block = true + title = true + +[goldmark.renderer] + unsafe = true \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index cadc2ce..481069d 100644 --- a/hugo.toml +++ b/hugo.toml @@ -10,29 +10,6 @@ defaultContentLanguageInSubdir = false [outputs] home = ["HTML", "RSS", "JSON"] -[markup.highlight] - anchorLineNos = false - codeFences = true - guessSyntax = true - hl_Lines = '' - hl_inline = false - lineAnchors = '' - lineNoStart = 1 - lineNos = true - lineNumbersInTable = true - noClasses = false - tabWidth = 4 - wrapperClass = 'highlight' - -[markup.goldmark.parser] - wrapStandAloneImageWithinParagraph = false - -[markup.goldmark.parser.attribute] - block = true - title = true -[markup.goldmark.renderer] - unsafe = true - [taxonomies] category = "categories" tag = "tags"