Skip to content

Commit ec92179

Browse files
author
linjianyou
committed
找到了不编译的问题,[params] useHLJS = true 导致的
1 parent 5c432bf commit ec92179

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ Temporary Items
5252

5353
resources
5454
public
55-
node_modules
55+
node_modules
56+
.idea

hugo.toml

+6-21
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
21
baseURL = 'https://linjonh.github.io/'
3-
languageCode = 'zh-CN'
2+
defaultContentLanguage = "zh-cn"
3+
languageCode = 'CN'
44
title = '掘金小册'
55
theme = "loveit"
6-
# Google Analytics
7-
86
googleAnalytics="G-DQ3LB950CS"
9-
10-
11-
ignoreFiles = ["\\.git", "\\.DS_Store", "node_modules"]
127
# [markup]
138
# [markup.goldmark]
149
# [markup.goldmark.extensions]
@@ -20,14 +15,7 @@ ignoreFiles = ["\\.git", "\\.DS_Store", "node_modules"]
2015
# enable = true
2116
# [markup.goldmark.renderer]
2217
# unsafe = true # ✅ 直接使用布尔值
23-
# determines default content language ["en", "zh-cn", "fr", "pl", ...]
24-
# 设置默认的语言 ["en", "zh-cn", "fr", "pl", ...]
25-
defaultContentLanguage = "zh-cn"
26-
# language code ["en", "zh-CN", "fr", "pl", ...]
27-
# 网站语言, 仅在这里 CN 大写 ["en", "zh-CN", "fr", "pl", ...]
28-
# languageCode = "CN"
29-
# language name ["English", "简体中文", "Français", "Polski", ...]
30-
# 语言名称 ["English", "简体中文", "Français", "Polski", ...]
18+
3119
languageName = "简体中文"
3220
# whether to include Chinese/Japanese/Korean
3321
# 是否包括中日韩文字
@@ -102,8 +90,6 @@ url = "/categories/documentation/"
10290
title = ""
10391

10492
[params]
105-
useHLJS = true
106-
10793
BaseURL = ""
10894
# site default theme ["auto", "light", "dark"]
10995
# 网站默认主题 ["auto", "light", "dark"]
@@ -142,7 +128,6 @@ cache = { enabled = true, deny_paths = [
142128
"/admin",
143129
"/private",
144130
], static_files = [
145-
# "/assets/images/boy.webp",
146131
"/js/theme.min.js",
147132
"/css/style.min.css",
148133
] }
@@ -297,7 +282,7 @@ enable = true
297282
gravatarEmail = ""
298283
# URL of avatar shown in home page
299284
# 主页显示头像的 URL
300-
avatarURL = "/TechBlog/assets/images/boy.webp"
285+
avatarURL = "/assets/images/boy.webp"
301286
# title shown in home page (HTML format is supported)
302287
# 主页显示的网站标题 (支持 HTML 格式)
303288
title = ""
@@ -669,7 +654,7 @@ images = []
669654
# 出版者信息
670655
[params.page.seo.publisher]
671656
name = "jaysen.lin"
672-
logoUrl = "/TechBlog/assets/images/boy.webp"
657+
logoUrl = "/assets/images/boy.webp"
673658

674659
# TypeIt config
675660
# TypeIt 配置
@@ -820,7 +805,7 @@ priority = 0.5
820805
[permalinks]
821806
# posts = ":year/:month/:filename"
822807
# posts = ":filename"
823-
posts = "/posts/:sections/:slug/"
808+
posts = "/posts/:sections/:slug/"
824809

825810
# Privacy config (https://gohugo.io/about/hugo-and-gdpr/)
826811
# 隐私信息配置 (https://gohugo.io/about/hugo-and-gdpr/)

0 commit comments

Comments
 (0)