Skip to content

Commit 15de09d

Browse files
committed
Change theme to narrow
1 parent d89e3b1 commit 15de09d

File tree

23 files changed

+284
-323
lines changed

23 files changed

+284
-323
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
path = themes/congo
33
url = https://github.com/jpanther/congo.git
44
branch = stable
5+
[submodule "themes/narrow"]
6+
path = themes/narrow
7+
url = https://github.com/tom2almighty/hugo-narrow.git

config/_default/config.toml

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

config/_default/hugo.yaml

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
baseURL: "https://kneep.top"
2+
title: "尼普学种花"
3+
theme: "narrow"
4+
5+
enableRobotsTXT: true
6+
7+
languageCode: "zh-Hans"
8+
defaultContentLanguage: "zh-cn"
9+
10+
timeZone: "Asia/Shanghai"
11+
12+
hasCJKLanguage: true
13+
enableEmoji: true
14+
15+
enableGitInfo: true
16+
17+
pagination:
18+
pageSizer: 6
19+
20+
taxonomies:
21+
category: categories
22+
tag: tags
23+
24+
params:
25+
description: "种花、旅行、写代码"
26+
keywords: ["旅行", "自驾", "计算机科学", "代码", "操作系统"]
27+
defaultAuthor: "Alvin Cao"
28+
language: "zh-Hans"
29+
shortName: "尼普学种花"
30+
logo:
31+
image: "/favicon.svg" # Relative path in static directory, leave empty to use site title"s first letter with theme color
32+
link: "/" # Click to visit site homepage
33+
favicon:
34+
svg: "/favicon.svg" # SVG format favicon
35+
#images:
36+
#- "/images/og-default.avif" # Default Open Graph image
37+
stickyHeader: true # Sticky navigation bar
38+
showThemeSwitch: true # Whether to show theme color switch button
39+
showDarkModeSwitch: true # Whether to show dark mode switch button
40+
showLanguageSwitch: false # Whether to show language switch button
41+
languageSwitchMode: dropdown # Language switch mode: "dropdown" (show panel) or "cycle" (direct cycle)
42+
author:
43+
name: "Alvin Cao"
44+
title: "一个手艺人的自我记录"
45+
description: "种花、旅行、古法编程"
46+
avatar: "/img/author.jpg"
47+
social:
48+
- name: "Email"
49+
url: "mailto:[email protected]"
50+
icon: "email"
51+
home:
52+
recentPostsCount: 5
53+
post:
54+
showRelated: true # Related
55+
relatedPostsCount: 3 # Related posts numbers
56+
license:
57+
show: true
58+
author: Hugo Narrow
59+
name: "CC BY-NC-SA 4.0"
60+
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."
61+
url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
62+
displayName: "CC BY-NC-SA 4.0"
63+
analytics:
64+
enabled: true # Master switch
65+
google:
66+
enabled: true
67+
id: "G-D9SNZ16ZSE"
68+
readingProgress:
69+
enabled: true
70+
height: 3
71+
showOnHomepage: false
72+
smoothScroll: true
73+
hideOnComplete: false
74+
colorScheme: "claude"
75+
themes:
76+
default:
77+
name: "Default"
78+
order: 1
79+
claude:
80+
name: "Claude"
81+
order: 2
82+
bumblebee:
83+
name: "Bumblebee"
84+
order: 3
85+
emerald:
86+
name: "Emerald"
87+
order: 4
88+
nord:
89+
name: "Nord"
90+
order: 5
91+
sunset:
92+
name: "Sunset"
93+
order: 6
94+
abyss:
95+
name: "Abyss"
96+
order: 7
97+
dracula:
98+
name: "Dracula"
99+
order: 8
100+
codeblock:
101+
collapse:
102+
enabled: true
103+
defaultState: expanded # Default collapse behavior: expanded, collapsed
104+
autoCollapseLines: 30 # Collapse when exceeding specified lines
105+
autoCollapseHeight: 400 # Collapse when exceeding specified height
106+
collapsedHeight: 120 # Height when collapsed
107+
108+
katex:
109+
enable: true
110+
delimiters:
111+
- left: $$
112+
right: $$
113+
display: true
114+
- left: $
115+
right: $
116+
display: false
117+
118+
markup:
119+
highlight:
120+
codeFences: true # Enable code fences
121+
guessSyntax: true # Auto-detect language
122+
lineNos: true # Show line numbers
123+
lineNumbersInTable: false # Use table-style line numbers, set to false for theme compatibility
124+
noClasses: false # Use CSS classes instead of inline styles
125+
tabWidth: 4 # Tab width
126+
tableOfContents:
127+
startLevel: 2 # 从 H2 标题开始包含
128+
endLevel: 4 # 包含到 H4 标题
129+
ordered: false
130+
131+
outputs:
132+
home: ["HTML", "RSS", "JSON", "WebAppManifest"]
133+
134+
# WebManifest
135+
outputFormats:
136+
WebAppManifest:
137+
mediaType: "application/manifest+json"
138+
baseName: "site"
139+
isPlainText: true
140+
141+
menus:
142+
main:
143+
- name: 文章 # Display name
144+
pageRef: /posts # Page reference
145+
weight: 10 # Sort weight
146+
params:
147+
icon: posts # Icon name
148+
- name: 标签
149+
pageRef: /tags
150+
weight: 20
151+
params:
152+
icon: tags
153+
- name: 关于我
154+
pageRef: /about
155+
weight: 30
156+
params:
157+
icon: about
158+
- name: RSS
159+
url: /index.xml
160+
weight: 40
161+
params:
162+
icon: rss
163+
social:
164+
- name: Email
165+
url: mailto:[email protected]
166+
weight: 40
167+
params:
168+
icon: email

config/_default/languages.zh-Hans.toml

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

config/_default/markup.toml

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

config/_default/menus.zh-Hans.toml

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

config/_default/module.toml

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

0 commit comments

Comments
 (0)