-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_config.yml
More file actions
145 lines (130 loc) · 4.73 KB
/
_config.yml
File metadata and controls
145 lines (130 loc) · 4.73 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
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: '与买桂花同载酒'
subtitle: '心之所向,素履以往'
description: '这是Zebin Gao的个人博客,记录关于编程技术、生活随笔和读书的内容。'
keywords: Zebin, Blog, 编程, 生活, 技术
author: Zebin 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: 20
order_by: -date
# Category & Tag 解决中文 URL 乱码或美化链接。
default_category: '想法杂记'
category_map:
年终总结: annual-review
想法杂记: thoughts
家庭生活: daily-life
编程技术: programming
读书笔记: book-notes
tag_map:
日子: life
技术: tech
编程: coding
杂记: notes
# 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
#blog back
backup:
type: git
theme: material-x-1.2.1
message: this is my blog backup
repository:
github: git@github.com:ZebinGao/ZebinGao.github.io.git,
#确保全局配置存在,给插件用
search:
path: search.xml
field: post
content: true
format: html
#limit: 10000 是一个安全阀,用来限制搜索数据库抓取的文章数量上限。
limit: 10000
# 归档页生成配置
archive_generator:
per_page: 0 # 🎯 0 表示归档页不分页,一页展示所有文章
yearly: true # 开启按年归档
monthly: true # 开启按月归档