-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_config.butterfly.yml
More file actions
126 lines (114 loc) · 3.21 KB
/
_config.butterfly.yml
File metadata and controls
126 lines (114 loc) · 3.21 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
# Butterfly 主题配置
# 更多配置请参考: https://butterfly.js.org/
# 完全禁用顶部图片功能(包括全屏封面)
# --------------------------------------------------
disable_top_img: true
# 首页封面设置(禁用空白页)
# --------------------------------------------------
cover:
index_enable: false # 禁用首页封面,直接显示文章列表
aside_enable: true
archives_enable: true
global_enable: false # 全局禁用封面
# 主页设置
# --------------------------------------------------
index_site: true # 使用网站首页模式(不使用全屏封面)
index_post_style: block # 文章列表样式
index_img:
# 顶部封面图(已禁用)
url: ''
# 居中的图标
icon: fas fa-home
# 头像设置
# --------------------------------------------------
avatar:
img: https://github.com/kegechen.png
effect: false
# 导航栏
# --------------------------------------------------
nav:
logo: # 可选,网站图标
display_title: true # 是否显示网站标题
fixed: true # 导航栏是否固定
menu:
Home: / || fas fa-home
Archives: /archives/ || fas fa-archive
Tags: /tags/ || fas fa-tags
Categories: /categories/ || fas fa-folder-open
#About: /about/ || fas fa-user-circle
# 侧边栏设置
# --------------------------------------------------
aside:
enable: true
hide: false
button: true
mobile: true # 移动端显示
position: right # 侧边栏位置
display:
post: true # 文章页显示
archive: true # 归档页显示
category: true # 分类页显示
tag: true # 标签页显示
card_author:
enable: true
description: 记录工作技术笔记和个人生活点滴
button:
enable: true
icon: fab fa-github
text: Github
link: https://github.com/kegechen
card_announcement:
enable: true
content: 欢迎来到我的博客!
card_recent_post:
enable: true
limit: 5
sort: date
show_icon: true
card_categories:
enable: true
limit: 8
expand: none
sort_order: count
show_icon: true
card_tags:
enable: true
limit: 20
order: count
show_icon: true
card_archives:
enable: true
limit: 8
archive_type: monthly
show_icon: true
card_webinfo:
enable: true
post_count: true
post_sort_order: desc
runtime: true
# 代码块设置
# --------------------------------------------------
highlight_theme: mac light # 代码主题
highlight_copy: true # 复制按钮
highlight_lang: true # 显示语言
highlight_height_limit: false # 代码高度限制
highlight_shrink: false # 代码折叠
# 字体设置
# --------------------------------------------------
font:
font_size: 16px
font_family: 'Lato, "Microsoft YaHei", sans-serif'
code_font_family: 'consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace'
# 搜索设置
# --------------------------------------------------
# 注意:需要先安装 hexo-generator-searchdb
# npm install hexo-generator-searchdb
local_search:
enable: false # 暂时禁用,需要先安装插件
preload: false
CDN:
# 注入自定义样式(简洁风格)
# --------------------------------------------------
inject:
head:
- <link rel="stylesheet" href="/css/custom.css">