diff options
| author | verdant <im@verdant.ee> | 2026-05-31 16:33:36 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-05-31 16:33:36 +0800 |
| commit | 172adfb014596423d7cc3043f2a288ac01884cba (patch) | |
| tree | f788b0b10f330daf8c3a6d1a8ed656a1d1253390 /hugo.toml | |
| parent | f9869a2cf060976c69aeade3d3f231bf1fbdddd3 (diff) | |
| download | blog-172adfb014596423d7cc3043f2a288ac01884cba.tar.gz blog-172adfb014596423d7cc3043f2a288ac01884cba.zip | |
Add minify configuration, modify favicon url
Diffstat (limited to 'hugo.toml')
| -rw-r--r-- | hugo.toml | 34 |
1 files changed, 20 insertions, 14 deletions
@@ -30,24 +30,17 @@ unsafe = true startLevel = 2 # 起始级别 endLevel = 3 # 结束级别 ordered = false # 是否使用有序列表 - -[markup.goldmark.extensions] - [markup.goldmark.extensions.extras] - [markup.goldmark.extensions.extras.mark] - enable = true - + [markup.highlight] -guessSyntax = true -noClasses = true -style = "evergarden" -tabWidth = 4 + codeFences = false + guessSyntax = false + style = "emacs" + noClasses = true [taxonomies] category = "categories" tag = "tags" - - [languages] [languages.zh-cn] languageName = "中文" @@ -104,7 +97,7 @@ tabWidth = 4 groupByYear = true toc = true showPostCount = true - favicon = "/favicon.png" + favicon = "/favicon.ico" hideMadeWithLine = true imageZoom = true @@ -113,7 +106,20 @@ tabWidth = 4 email = "im@verdant.ee" [params.footer] - content = "© 2024 - 2026 | Made with ❤️ by [Verdant](https://verdant.ee)." + content = "© 2024 - 2026 [Verdant](https://verdant.ee). Build with Hugo." [security.goTemplates] allowActionJSTmpl = true + +disableHugoGeneratorInject = true + +[minify] + disableXML = false + minifyOutput = true + [minify.tdewolff.html] + keepComments = false + keepSpecialComments = true + keepDefaultAttrVals = true + keepDocumentTags = true + keepEndTags = true + keepQuotes = false |
