-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_config.yml
More file actions
203 lines (187 loc) · 6.07 KB
/
Copy path_config.yml
File metadata and controls
203 lines (187 loc) · 6.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: '与买桂花同载酒'
subtitle: '心之所向,素履以往'
description: '人生天地间,忽如远行客。'
keywords: 编程, 生活, 技术
author: Nathan Gao
language: zh-CN
timezone: 'Asia/Shanghai'
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://www.zebin-yue.top
root: /
# root: /ZebinGao.github.io/
# :year/:month/:day/:title/
#这是文章生成的网址格式。.../2025/12/30/hello-world/ (太长了,显得臃肿)
#如果你按日期生成链接,某天你想把 2024 年写的文章更新日期改为 2025 年,那么旧的分享链接就会失效(404)。而用 :title.html 就没这个烦恼。
permalink: post/:title.html
permalink_defaults:
pretty_urls:
trailing_index: false # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
# Directory
# 资源文件夹。这是你存放所有“原始素材”的地方(包括 Markdown 文章、图片、关于页面等)。
source_dir: source
# 静态文件夹。当你运行 hexo g 时,Hexo 会把生成的 HTML、CSS、JS 全部放在这个文件夹里。
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab当读者点击你博客里的外部链接(如 Twitter)时,会在新标签页打开,不会让读者离开你的博客。
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false #是否渲染 source/_drafts 文件夹下的草稿。设为 false 则这些文章不会发布。
post_asset_folder: false #每次新建文章都会自动生成一个同名文件夹,方便你把图片放进去。
relative_link: false
future: true #是否显示发布时间晚于当前时间的文章。
syntax_highlighter: highlight.js #Hexo 提供两种主流的代码高亮方式:Highlight.js 和 PrismJS。
highlight:
line_number: true
auto_detect: true
tab_replace: ''
wrap: true
hljs: true
prismjs:
preprocess: true
line_number: true
tab_replace: ''
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)这就是为什么你会出现 page/2 文件夹的原因。如果你有 11 篇文章,首页显示 10 篇,第 11 篇就会被挤到第二页。
# order_by: Posts order. (Order by date descending by default)表示按日期倒序排列(最新的文章排在最前面)。
index_generator:
path: ''
per_page: 12
order_by: -date
# Category & Tag 解决中文 URL 乱码或美化链接。
default_category: '生活随笔'
category_map:
生活随笔: life-notes
情感与心理: emotions-psychology
社会观察: social-observations
技术笔记: tech-notes
读书与思考: reading-reflection
转载: reposts
tag_map:
个人反思: self-reflection
个人成长: personal-growth
中国问题: china-issues
互联网文化: internet-culture
亲密关系: intimate-relationships
人在德国: life-in-germany
人际关系: interpersonal
写作: writing
利己主义: egoism
前端开发: frontend
历史反思: history-reflection
哲学: philosophy
国家制度: national-systems
外企: foreign-company
多巴胺: dopamine
婚姻: marriage
宗教: religion
家庭关系: family
小朱: xiao-zhu
小镇父子: small-town-father-son
左联: left-wing-league
干部: cadres
年度回顾: annual-review
心理学: psychology
快乐: happiness
性别议题: gender-issues
性能优化: performance
批判性思维: critical-thinking
技术经历: tech-experience
文学: literature
权力与自由: power-and-freedom
沟通与表达: communication
清华北大: tsinghua-pku
爱国口号: patriotism
爱情: love
生活记录: life-record
生育率: birth-rate
疫情: pandemic
看电影: movie-review
真相: truth
社会评论: social-commentary
程序员: programmer
简单: simplicity
网络自由: internet-freedom
育儿: parenting
腾讯: tencent
自我认知: self-awareness
诈骗: fraud
读书笔记: book-notes
调试排障: debugging
谷歌: google
赛道: career-track
转载: repost
遗孀: widow
阶级分析: class-analysis
领导: leadership
# Metadata elements 这是一种对 Hexo 开发团队的“致敬”。
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'
# Pagination
## Set per_page to 0 to disable pagination
per_page: 20
pagination_dir: page
# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: Zebin-Theme
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: git
repo: git@github.com:ZebinGao/ZebinGao.github.io.git
branch: main
#确保全局配置存在,给插件用
search:
path: search.xml
field: post
content: true
format: html
#limit: 10000 是一个安全阀,用来限制搜索数据库抓取的文章数量上限。
limit: 10000
# 归档页生成配置
archive_generator:
per_page: 30 # 🎯 每页 30 篇
yearly: true # 开启按年归档
monthly: true # 开启按月归档
# 文章加密
encrypt:
message: "本文已加密,请输入密码查看。"
wrong_pass_message: "密码错误,请重试。"
kdf:
iterations: 600000
# RSS 订阅
feed:
type: atom
path: atom.xml
limit: 10