Files
blog/hugo.toml
T

54 lines
1.5 KiB
TOML
Raw Normal View History

2024-08-04 12:23:15 +08:00
baseURL = "https://usj.cc"
2024-07-11 08:59:32 +08:00
languageCode = 'zh-cn'
2024-07-23 20:17:02 +08:00
title = '优世界'
2024-07-23 20:18:57 +08:00
theme = 'Ying'
2026-01-19 00:15:15 +08:00
# 文章与页面使用 .html 结尾(ugly URLs 模式)
uglyURLs = true
2024-07-23 20:18:57 +08:00
# 分页展示文章数 每页展示文章的数量
2024-10-05 22:58:17 +08:00
paginate = 6
2026-01-19 00:15:15 +08:00
2024-07-26 11:24:34 +08:00
#计算文章总字数
HasCJKLanguage = true
2026-01-19 00:15:15 +08:00
2024-08-09 09:07:26 +08:00
#hugo代码高亮显示
[markup]
2026-01-22 21:26:48 +08:00
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
2024-08-09 09:07:26 +08:00
[markup.highlight]
2026-01-22 13:16:50 +08:00
style = 'dracula'
2026-01-22 19:41:47 +08:00
noClasses = false
2026-01-19 00:15:15 +08:00
2026-01-22 21:39:19 +08:00
[minify]
disableXML = true
[minify.tdewolff]
[minify.tdewolff.html]
keepConditionalComments = true
keepDefaultAttrVals = true
keepDocumentTags = true
keepEndTags = true
keepWhitespace = false
2026-01-22 21:26:48 +08:00
# 自定义文章固定链接:使用 日期 作为文件名(如 /20260117.html)
2024-10-20 13:46:44 +08:00
[permalinks]
2026-01-22 21:26:48 +08:00
post = "/:year:month:day"
2026-01-22 22:33:35 +08:00
[params]
2026-01-23 13:19:05 +08:00
# 默认作者
author = "小赵"
2026-01-22 22:33:35 +08:00
[params.style]
# 自定义背景图开关
enableBackgroundImage = true
# 背景图链接 (留空则不显示背景图,enableBackgroundImage=false 时此项无效)
backgroundImageUrl = "/image/deno.webp"
# 背景图显示模式: cover (全屏铺满), contain (完整显示), auto (原始大小), 或具体数值 (如 100% auto)
backgroundSize = "contain"
# 背景图重复: no-repeat (不重复), repeat (重复), repeat-x, repeat-y, round (自动调整)
backgroundRepeat = "round"
# 背景图位置: center, top, bottom, left, right
backgroundPosition = "center"
# 背景图固定: fixed (固定), scroll (随页面滚动)
backgroundAttachment = "fixed"