-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path_config.yml
More file actions
208 lines (189 loc) · 6.82 KB
/
Copy path_config.yml
File metadata and controls
208 lines (189 loc) · 6.82 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
204
205
206
207
208
# Theme configuration file
# 基本信息
name: BlackCat
description: A simple dark Hexo theme inspired by code.
author: BlackCat
# 菜单配置
menu:
首页: /
归档: /archives/
分类: /categories/
标签: /tags/
关于: /about/
搜索: /search/
# 样式配置
style:
# 颜色方案 ('dark' 或 'white')
colorscheme: 'dark'
# 主题色(代码编辑器深色主题)
theme_color: '#1e1e1e'
# 链接色
link_color: '#569cd6'
# 强调色
accent_color: '#608b4e'
# 字体
font_family: 'JetBrains Mono, Consolas, Monaco, monospace'
# 背景色
background_color: '#252526'
# 文本色
text_color: '#d4d4d4'
# 自动主题切换
auto_theme_switch:
enabled: false # 是否启用自动切换
light_start: "06:00" # 浅色主题开始时间(24小时制)
light_end: "18:00" # 浅色主题结束时间(24小时制)
# 侧边栏配置
sidebar:
# 显示侧边栏
enabled: true
# 侧边栏位置 (left or right)
position: left
# 移动端侧边栏
mobile:
# 移动端下是否显示侧边栏
enabled: false
# 显示汉堡菜单
hamburger: true
# 移动端配置
mobile:
# 启用移动端优化
enabled: true
# 断点(小于此宽度应用移动端样式)
breakpoint: 768
# 缩放适应
scale_fix: true
# 导航栏样式 (dropdown, drawer)
nav_style: 'drawer'
# 字体大小调整
font_size_adjust: 0.9
# 内容宽度百分比
content_width: 100%
# 移动端下隐藏元素
hide_elements: ['sidebar-toc']
# 移动端特殊样式
custom_style: true
# 移动端触摸优化
touch_optimization: true
# 移动端代码块优化
code_optimization: true
# 代码高亮设置
highlight:
enable: true
line_number: true
auto_detect: true
tab_replace: ' '
wrap: true
hljs: true
prismjs:
enable: false
# 代码块设置
code_block:
copy_button: true
line_number: true
max_height: 500
custom_font: true
# 首页文章数量
index_posts: 5
# 分类专栏配置
# 为每个分类自定义封面图和描述,分类名需与实际分类名完全一致
# 示例:
# categories:
# blog:
# cover: /images/blog-cover.jpg
# description: "个人博客文章,记录技术心得与生活感悟"
# technical-guide:
# cover: /images/tech-cover.jpg
# description: "详细的技术教程和使用指南"
categories:
# 开启 MathJax 数学公式支持
mathjax: true
# 社交链接
social:
github: your_github_username
twitter: your_twitter_username
email: your_email@example.com
# 评论系统配置
comments:
# 评论系统类型: 'waline' | 'disqus' | false
provider: waline
# Waline 配置 - 无需 GitHub 账号的评论系统
waline:
serverURL: https://vsc4tblackcat1337.vercel.app/ # 你的 Waline 服务器地址(例如:https://your-domain.vercel.app)
lang: zh-CN # 界面语言: 'zh-CN' | 'en' | 'jp' 等
locale: {} # 自定义语言配置
emoji:
- https://unpkg.com/@waline/emojis@1.2.0/weibo
- https://unpkg.com/@waline/emojis@1.2.0/alus
requiredMeta: [] # 必填项:[] 表示都不必填,可选 ['nick', 'mail', 'link']
login: disable # 登录模式:'disable' 完全匿名 | 'enable' 可选登录 | 'force' 强制登录
wordLimit: 0 # 评论字数限制,0 为无限制
pageSize: 10 # 评论列表分页,每页条数
imageUploader: false # 是否启用图片上传
highlighter: true # 代码高亮
texRenderer: false # 数学公式渲染
search: false # 是否启用搜索(搜索用户评论)
pageview: false # 是否显示文章阅读数
comment: true # 是否显示评论数
copyright: false # 是否显示版权信息
# Disqus 配置(备选方案)
disqus:
shortname: # 你的 Disqus shortname
# Favicon 配置
# 支持多种尺寸和格式,以适配不同设备和浏览器
# 注意:需要在 source 目录下放置对应的 favicon 文件
# favicon:
# ico: /favicon.ico # 传统 favicon 格式
# small: /favicon-16x16.png # 16x16 PNG
# medium: /favicon-32x32.png # 32x32 PNG
# large: /favicon-192x192.png # 192x192 PNG (Android)
# apple_touch_icon: /apple-touch-icon.png # 180x180 (iOS)
# 自定义 CSS 和 JS
custom_css:
- /css/mobile.css
custom_js:
- /js/code-copy.js
- /js/code-enhance.js
# Security - Hexo Blog Encrypt
encrypt:
enable: true
abstract: "这是一篇受保护的文章,请输入密码访问。"
message: "请输入密码"
tags:
- {name: "tagName", password: "password"}
template: '
<div id="hexo-blog-encrypt" class="hbe-card" data-wpm="{{ wpm }}" data-whm="{{ whm }}">
<div class="hbe-header">
<div class="hbe-header-left">
<div class="hbe-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>
</div>
<div class="hbe-header-copy">
<p class="hbe-badge">Protected</p>
<h3 class="hbe-title">受保护的内容</h3>
<p class="hbe-description">请输入密码以解锁本文,密码会在本页面本地保存,直到你选择重新加密。</p>
</div>
</div>
</div>
<div class="hbe-content-wrapper">
<label class="hbe-label" for="hbe-password">Password</label>
<div class="hbe-input-container">
<input type="password" id="hbe-password" class="hbe-input" placeholder="输入密码解锁内容" />
<button id="hbe-button" class="hbe-button" type="button">
<span>解锁</span>
<svg class="hbe-arrow" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
</button>
</div>
<p class="hbe-hint">按 Enter 也可以提交,解锁成功后会在本页记住密码。</p>
<div id="hbe-message" class="hbe-message" role="status" aria-live="polite"></div>
</div>
<div class="hbe-actions" id="hbe-actions">
<div class="hbe-success-note">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"></path></svg>
<span>内容已解锁,可随时重新加密。</span>
</div>
<button id="hbe-encrypt-again" class="hbe-ghost-button" type="button">重新加密</button>
</div>
<div id="hbe-content" style="display:none;">{{ content }}</div>
</div>
<script src="{{ script }}"></script>
'