-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yml
171 lines (152 loc) · 4.98 KB
/
_config.yml
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
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: 花火の红玉宫
subtitle: 早安每一天!
description: 每个人都有暗影的一面……
keywords:
author: 伪音花火
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://01petard.github.io/
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
# Directory
source_dir: source # 资源文件夹,这个文件夹用来存放内容,例如我们用markdown编写的博文
public_dir: public # 公共文件夹,这个文件夹用于存放生成的静态博客文件
tag_dir: tags # 标签文件夹
archive_dir: archives # 归档文件夹
category_dir: categories # 分类文件夹
code_dir: downloads/code # Include code 文件夹
i18n_dir: :lang # 国际化(i18n)文件夹
skip_render: # 跳过指定文件的渲染,您可使用 glob 来配置路径
# Writing
new_post_name: :title.md # 默认的新博文名称
default_layout: post # 默认布局
titlecase: false # 把标题转换为 titlecase(titlecase指的是将每个单词首字母转换成大写)
external_link:
enable: true # 在新标签中打开链接
field: site # Apply to the whole site
exclude: ''
filename_case: 0 # 把文件名称转换为 (1) 小写或 (2) 大写, 0表示不变
render_drafts: false # 是否显示草稿
post_asset_folder: true # 是否启用资源文件夹(用来存放相对路径图片或文件)
relative_link: false # 把链接改为与根目录的相对位址
future: true
highlight:
enable: true # 是否开启代码高亮
line_number: true # 是否增加代码行号
auto_detect: false # 自动判断代码语言
tab_replace: ''
wrap: true
hljs: false
prismjs:
enable: false
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)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: '' # 博客的默认路径
per_page: 30 # 每页博客数量上限
order_by: -date # 博客排序
#archive分页每页显示文章数
archive_generator:
per_page: 0
#tag分页每页显示文章数
tag_generator:
per_page: 0
#category分页每页显示文章数
category_generator:
per_page: 0
# Category & Tag
default_category: uncategorized # 默认分类, uncategorized表示未分类
category_map: # 分类别名
tag_map: # 标签别名
# Metadata elements
## 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: 0 # 每页显示的文章量,如果设置值为0,则表示禁止分页
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/
#RSS订阅
plugin:
- hexo-generator-feed
#Feed Atom
feed:
type: atom
path: atom.xml
limit: 20
## Themes: https://hexo.io/themes/
#theme: landscape
#theme: next
#theme: matery
theme: butterfly
# theme: jelly
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
# deploy:
# type: ''
deploy:
type: git # 部署方式git
repo: [email protected]:01Petard/01Petard.github.io.git #远端仓库地址
branch: main # 分支
# Search
search:
path: ./public/search.xml # 索引文件的路径,相对于站点根目录
field: post # 搜索范围,默认是 post,还可以选择 page、all,设置成 all 表示搜索所有页面
format: html
limit: 10000 # 限制搜索的条目数
# bilibili追番表
bangumi:
enable: true
vmid: 12764212
title: '生命不息,追番不止。'
quote: 'NO ANIME, NO LIFE.'
show: 1 #初始显示页面:0: 想看 , 1: 在看 , 2: 看过,默认为 1
loading: '/img/bangumi-loading.gif'
# 显示live2d
live2d:
enable: true
scriptFrom: local # 默认
tagMode: false # 标签模式, 是否仅替换 live2d tag标签而非插入到所有页面中
debug: false # 调试, 是否在控制台输出日志
model:
use: live2d-widget-model-shizuku #模型选择
display:
position: right #模型位置
width: 150 #模型宽度
height: 300 #模型高度
hOffset: 33
vOffset: -40
mobile:
show: false #是否在手机端显示
# 添加aplayer播放器
#aplayer:
# meting: true
# asset_inject: false