fixed bug 若干
This commit is contained in:
1 parent
e59a772985
commit
830c2d5947
10 files changed
+324
-58
No files matched your search
@@ -1,26 +1,53 @@
|
||||
baseURL = "https://usj.cc"
|
||||
languageCode = 'zh-cn'
|
||||
title = '优世界'
|
||||
theme = 'Ying'
|
||||
# ==============================================================================
|
||||
# 基础配置 (Basic Configuration)
|
||||
# ==============================================================================
|
||||
|
||||
# 文章与页面使用 .html 结尾(ugly URLs 模式)
|
||||
# 网站的基本 URL (Base URL)
|
||||
baseURL = "https://usj.cc"
|
||||
|
||||
# 网站的语言代码 (Language Code)
|
||||
languageCode = "zh-cn"
|
||||
|
||||
# 网站标题 (Site Title)
|
||||
title = "优世界"
|
||||
|
||||
# 使用的主题名称 (Theme Name)
|
||||
theme = "Ying"
|
||||
|
||||
# ==============================================================================
|
||||
# 核心行为配置 (Core Behavior)
|
||||
# ==============================================================================
|
||||
|
||||
# 文章与页面使用 .html 结尾 (Ugly URLs)
|
||||
# true: 生成 /post/hello.html, false: 生成 /post/hello/index.html
|
||||
uglyURLs = true
|
||||
|
||||
# 分页展示文章数 每页展示文章的数量
|
||||
# 分页设置:每页展示的文章数量 (Pagination)
|
||||
paginate = 6
|
||||
|
||||
#计算文章总字数
|
||||
HasCJKLanguage = true
|
||||
# 开启 CJK (中日韩) 语言支持,用于准确统计字数 (CJK Language Support)
|
||||
hasCJKLanguage = true
|
||||
|
||||
#hugo代码高亮显示
|
||||
# ==============================================================================
|
||||
# 构建与环境配置 (Build & Environment)
|
||||
# ==============================================================================
|
||||
|
||||
# 模块配置 (Module Configuration)
|
||||
[module]
|
||||
[module.hugoVersion]
|
||||
extended = false
|
||||
min = "0.116.0"
|
||||
|
||||
# 内容渲染配置 (Markup Configuration)
|
||||
[markup]
|
||||
[markup.goldmark]
|
||||
[markup.goldmark.renderer]
|
||||
unsafe = true
|
||||
unsafe = true # 允许在 Markdown 中使用 HTML 标签 (Allow raw HTML)
|
||||
[markup.highlight]
|
||||
style = 'dracula'
|
||||
style = "dracula" # 代码高亮样式 (Highlight style)
|
||||
noClasses = false
|
||||
|
||||
# 资源压缩配置 (Minification)
|
||||
[minify]
|
||||
disableXML = true
|
||||
[minify.tdewolff]
|
||||
@@ -31,20 +58,79 @@ HasCJKLanguage = true
|
||||
keepEndTags = true
|
||||
keepWhitespace = false
|
||||
|
||||
# 自定义文章固定链接:使用 日期 作为文件名(如 /20260117.html)
|
||||
# ==============================================================================
|
||||
# URL 与 输出格式 (URLs & Output Formats)
|
||||
# ==============================================================================
|
||||
|
||||
# 自定义文章固定链接 (Permalinks)
|
||||
# 使用日期作为文件名,例如 /20260117.html
|
||||
[permalinks]
|
||||
post = "/:year:month:day"
|
||||
|
||||
[params]
|
||||
# 默认作者
|
||||
author = "小赵"
|
||||
# 输出格式配置 (Outputs)
|
||||
[outputs]
|
||||
home = ["HTML", "RSS"]
|
||||
|
||||
# RSS 媒体类型定义 (RSS Media Type)
|
||||
[mediaTypes."application/rss+xml"]
|
||||
suffixes = ["xml"]
|
||||
|
||||
# RSS 输出格式详情 (RSS Output Format)
|
||||
[outputFormats.RSS]
|
||||
mediaType = "application/rss+xml"
|
||||
baseName = "rss"
|
||||
isPlainText = false
|
||||
noUgly = true
|
||||
permalinkable = true
|
||||
|
||||
# ==============================================================================
|
||||
# 站点参数配置 (Site Parameters)
|
||||
# ==============================================================================
|
||||
[params]
|
||||
# ----------------------------------------------------------------------------
|
||||
# 社交链接 (Social Links)
|
||||
# ----------------------------------------------------------------------------
|
||||
social = [
|
||||
{ title = "GitHub", url = "https://github.com/zqlit", icon = "ri-github-fill" },
|
||||
{ title = "我的主页", url = "#", icon = "ri-at-line" },
|
||||
{ title = "Rss订阅", url = "/rss.xml", icon = "ri-rss-fill" }
|
||||
]
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# 作者信息 (Author Info)
|
||||
# ----------------------------------------------------------------------------
|
||||
[params.author]
|
||||
name = "小赵"
|
||||
avatar = "/image/tx7.jpg"
|
||||
description = "不以物喜,不以己悲"
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# 评论系统 (Artalk Comments)
|
||||
# ----------------------------------------------------------------------------
|
||||
[params.artalk]
|
||||
server = "https://artalk.usj.cc"
|
||||
site = "优世界"
|
||||
emoticons = "/emotion/OwO.json"
|
||||
gravatar = "https://cravatar.cn/avatar/"
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# 弹幕配置 (Barrage Configuration)
|
||||
# ----------------------------------------------------------------------------
|
||||
[params.barrage]
|
||||
enableHitokoto = true
|
||||
hitokotoUrl = "https://v1.hitokoto.cn?c=a&c=b&c=c&c=d&c=i"
|
||||
|
||||
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# 样式定制 (Style Customization)
|
||||
# ----------------------------------------------------------------------------
|
||||
[params.style]
|
||||
# 自定义背景图开关
|
||||
enableBackgroundImage = true
|
||||
# 背景图链接 (留空则不显示背景图,enableBackgroundImage=false 时此项无效)
|
||||
backgroundImageUrl = "/image/deno.webp"
|
||||
# 背景图显示模式: cover (全屏铺满), contain (完整显示), auto (原始大小), 或具体数值 (如 100% auto)
|
||||
# 背景图显示模式: cover (全屏铺满), contain (完整显示), auto (原始大小), 或具体数值
|
||||
backgroundSize = "contain"
|
||||
# 背景图重复: no-repeat (不重复), repeat (重复), repeat-x, repeat-y, round (自动调整)
|
||||
backgroundRepeat = "round"
|
||||
@@ -52,3 +138,39 @@ HasCJKLanguage = true
|
||||
backgroundPosition = "center"
|
||||
# 背景图固定: fixed (固定), scroll (随页面滚动)
|
||||
backgroundAttachment = "fixed"
|
||||
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# 菜单配置 (Menus)
|
||||
# ==============================================================================
|
||||
|
||||
[[menu.main]]
|
||||
name = "优世界"
|
||||
pageRef = "/"
|
||||
weight = 10
|
||||
|
||||
[[menu.main]]
|
||||
name = "about"
|
||||
url = "/about.html"
|
||||
weight = 20
|
||||
|
||||
[[menu.main]]
|
||||
name = "comment"
|
||||
url = "/comment.html"
|
||||
weight = 20
|
||||
|
||||
[[menu.main]]
|
||||
name = "links"
|
||||
url = "/links.html"
|
||||
weight = 20
|
||||
|
||||
[[menu.main]]
|
||||
name = "circles"
|
||||
url = "/circles.html"
|
||||
weight = 30
|
||||
|
||||
[[menu.main]]
|
||||
name = "archives"
|
||||
url = "/archives.html"
|
||||
weight = 20
|
||||
Reference in new issue
Block a user