Skip to content

Commit 3110408

Browse files
committed
调整目录结构
1 parent 4fe4ebf commit 3110408

8 files changed

Lines changed: 338 additions & 342 deletions

File tree

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

config/_default/hugo.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# rebuild
2+
baseURL: https://www.imzcc.com/
3+
languageCode: zh-cn
4+
defaultContentLanguage: zh-cn
5+
defaultContentLanguageInSubdir: false
6+
title: 苹果派派
7+
8+
hasCJKLanguage: true
9+
enableEmoji: true
10+
11+
permalinks:
12+
posts: /posts/:slug/
13+
pages: /:slug/
14+
15+
# pagination
16+
pagination:
17+
pagerSize: 6
18+
path: "page"
19+
20+
markup:
21+
tableOfContents:
22+
startLevel: 2
23+
endLevel: 4
24+
ordered: true
25+
goldmark:
26+
renderer:
27+
unsafe: true
28+
highlight:
29+
codeFences: true
30+
guessSyntax: false
31+
lineNos: false
32+
lineNumbersInTable: false # Set to false
33+
noClasses: false
34+
style: github # No need to change
35+
tabWidth: 2
36+
37+
38+
codeblock:
39+
collapse:
40+
enabled: true
41+
defaultState: expanded # expanded, collapsed
42+
autoCollapseLines: 30
43+
autoCollapseHeight: 400
44+
collapsedHeight: 120
45+
46+
readingProgress:
47+
enabled: true
48+
height: 3
49+
showOnHomepage: false
50+
smoothScroll: true
51+
hideOnComplete: false
52+
53+
outputs:
54+
home: ["HTML", "RSS", "JSON", "WebAppManifest"]
55+
56+
# 自定义输出格式
57+
outputFormats:
58+
WebAppManifest:
59+
mediaType: "application/manifest+json"
60+
baseName: "site"
61+
isPlainText: true
62+
63+
module:
64+
hugoVersion:
65+
extended: true
66+
min: 0.146.0
67+
imports:
68+
- path: github.com/tom2almighty/hugo-narrow
69+

config/_default/languages.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
zh-cn:
2+
languageCode: zh-CN
3+
languageName: "简体中文"
4+
weight: 1
5+
en:
6+
languageCode: en-US
7+
languageName: "English"
8+
weight: 2

config/_default/menus.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
main:
2+
- identifier: nav.home
3+
pageRef: /
4+
weight: 10
5+
params:
6+
icon: home
7+
- identifier: nav.posts
8+
pageRef: /posts
9+
weight: 20
10+
params:
11+
icon: posts
12+
- identifier: nav.categories
13+
pageRef: /categories
14+
weight: 30
15+
params:
16+
icon: categories
17+
- identifier: nav.tags
18+
pageRef: /tags
19+
weight: 40
20+
params:
21+
icon: tags
22+
- identifier: nav.archives
23+
pageRef: /archives
24+
weight: 50
25+
params:
26+
icon: archive
27+
28+
29+
# footer menu
30+
footer:
31+
- name: About
32+
pageRef: /about
33+
weight: 10
34+
params:
35+
icon: about
36+
- name: RSS Feed
37+
url: /index.xml
38+
weight: 30
39+
params:
40+
icon: rss
41+
42+
# footer social link
43+
social:
44+
- name: GitHub
45+
url: https://github.com/IMZCC
46+
weight: 10
47+
params:
48+
icon: github
49+
- name: Email
50+
url: mailto:i@imzcc.com
51+
weight: 40
52+
params:
53+
icon: email

config/_default/params.yaml

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
header:
2+
sticky: true
3+
logo:
4+
image: "https://avatars-githubusercontent-webp.webp.se/u/25655983"
5+
link: "/"
6+
showThemeSwitch: true
7+
showDarkModeSwitch: true
8+
showLanguageSwitch: true
9+
languageSwitchMode: "dropdown"
10+
11+
toc:
12+
enabled: true
13+
position: "center"
14+
15+
description: "苹果派派"
16+
keywords: ["IMZCC", "苹果派派", "Hugo", "Blog", "Theme", "Technology", "Programming"]
17+
defaultAuthor: "苹果派派" # Default author name, used in posts without an author set
18+
language: "zh-cn"
19+
shortName: "苹果派派" # PWA
20+
images:
21+
- "/images/og-default.avif"
22+
23+
favicon:
24+
svg: "https://avatars-githubusercontent-webp.webp.se/u/25655983" # SVG format favicon (recommended)
25+
26+
seo:
27+
enableOpenGraph: true
28+
enableTwitterCard: true
29+
enableJsonLd: true
30+
defaultImage: "/images/og-default.avif"
31+
32+
author:
33+
name: "苹果派派"
34+
title: "Java、Python爱好者。"
35+
description: "啥也不是"
36+
avatar: "https://avatars-githubusercontent-webp.webp.se/u/25655983"
37+
social:
38+
- name: "GitHub"
39+
url: "https://github.com/IMZCC"
40+
icon: "github"
41+
- name: "Email"
42+
url: "mailto:i@imzcc.com"
43+
icon: "email"
44+
45+
# default color scheme
46+
colorScheme: "Dracula"
47+
themes:
48+
default:
49+
name: "Default"
50+
order: 1
51+
claude:
52+
name: "Claude"
53+
order: 2
54+
bumblebee:
55+
name: "Bumblebee"
56+
order: 3
57+
emerald:
58+
name: "Emerald"
59+
order: 4
60+
nord:
61+
name: "Nord"
62+
order: 5
63+
sunset:
64+
name: "Sunset"
65+
order: 6
66+
abyss:
67+
name: "Abyss"
68+
order: 7
69+
dracula:
70+
name: "Dracula"
71+
order: 8
72+
73+
74+
home:
75+
recentPostsCount: 5 # Number of recent posts to show on the home page
76+
77+
post:
78+
showRelated: true # show related posts
79+
relatedPostsCount: 3 # posts number
80+
81+
license:
82+
show: false
83+
author: "Hugo Narrow"
84+
name: "CC BY-NC-SA 4.0"
85+
description: "This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license."
86+
url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
87+
displayName: "CC BY-NC-SA 4.0"
88+
89+
# GLightbox
90+
lightbox:
91+
enabled: true
92+
loop: true
93+
width: 80vw
94+
height: 80vh
95+
touchNavigation: true
96+
draggable: true
97+
zoomable: true
98+
preload: true
99+
descPosition: bottom
100+
101+
# Justified Gallery
102+
justified_gallery:
103+
enabled: true
104+
rowHeight: 300
105+
gutter: 30
106+
lastRow: center
107+
transitionDuration: 0.3s
108+
resizeDebounce: 100
109+
rowHeightTolerance: 0.25
110+
maxRowsCount: 999999
111+
calculateItemsHeight: false
112+
113+
# comments
114+
comments:
115+
enabled: false
116+
# giscus, disqus, utterances, waline, artalk, twikoo
117+
system: "giscus"
118+
119+
giscus:
120+
repo: "tom2almighty/hugo-narrow-giscus"
121+
repoId: "R_kgDOO2gwLg"
122+
category: "General"
123+
categoryId: "DIC_kwDOO2gwLs4CrEaf"
124+
mapping: "pathname"
125+
strict: "0"
126+
reactionsEnabled: "1"
127+
emitMetadata: "0"
128+
inputPosition: "bottom"
129+
theme: "preferred_color_scheme"
130+
lang: "en"
131+
132+
disqus:
133+
shortname: ""
134+
135+
136+
utterances:
137+
repo: ""
138+
issueTerm: "pathname"
139+
label: "comment"
140+
theme: "preferred-color-scheme"
141+
142+
143+
waline:
144+
serverURL: ""
145+
lang: "zh-CN"
146+
147+
148+
artalk:
149+
server: ""
150+
site: ""
151+
locale: "zh-CN" # String|Object|"auto"
152+
darkMode: "auto"
153+
gravatar:
154+
mirror: "https://cravatar.cn/avatar/"
155+
156+
157+
twikoo:
158+
envId: ""
159+
region: "ap-shanghai"
160+
path: ""
161+
lang: "zh-CN"
162+
163+
164+
analytics:
165+
enabled: true
166+
baidu:
167+
enabled: false
168+
id: "your-baidu-analytics-id"
169+
clarity:
170+
enabled: true
171+
id: "tneyohmuw7"
172+
google:
173+
enabled: false
174+
id: "G-LPVY3HRMW9"
175+
umami:
176+
enabled: false
177+
id: "1f210821-b96e-4193-b749-832c99a55ff9"
178+
src: "https://cloud.umami.is/script.js"
179+
domains: "www.imzcc.com"
180+
181+
182+
katex:
183+
enabled: false
184+
delimiters:
185+
- left: "$$"
186+
right: "$$"
187+
display: true
188+
- left: "$"
189+
right: "$"
190+
display: false
191+
- left: "\\("
192+
right: "\\)"
193+
display: false
194+
- left: "\\["
195+
right: "\\]"
196+
display: true
197+
198+
mermaid:
199+
enabled: false
200+
201+

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/IMZCC/Blog
2+
3+
go 1.25.6
4+
5+
require github.com/tom2almighty/hugo-narrow v1.3.1 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/tom2almighty/hugo-narrow v1.3.1 h1:pEsdJcGfyokG2Y4g8Nhj8dGH/sO8SHnyTNEOICUvRVI=
2+
github.com/tom2almighty/hugo-narrow v1.3.1/go.mod h1:YvHbIcF9m4GNhyFZdMpbc7SsHTrbVAWd2g0F/dHs6d4=

0 commit comments

Comments
 (0)