配置文件

  1. 站点文件_config.yml,修改Extension字段,配置theme,设置为indigo
  2. 设置头像,在根目录/source/ 创建images/, 存放头像图片
  3. 配置主题文件_config.yml, 可以参考indigo configuration
  4. hexo g -d 查看远程效果
  5. hexo g, hexo s 查看本地效果

主题配置文件_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
# hexo-theme-indigo
# https://github.com/yscoder/hexo-theme-indigo
# reference : https://github.com/lrscy/lrscy.github.io/blob/hexo/themes/indigo/_config.yml
# 添加新菜单项遵循以下规则
# menu:
# link: fontawesome图标,省略前缀,本主题前缀为 icon-,必须
# text: About 菜单显示的文字,如果省略即默认与图标一致,首字母会转大写
# url: /about 链接,绝对或相对路径,必须。
# target: _blank 是否跳出,省略则在当前页面打开
menu:
home:
text: Homepage
url: /
archives:
url: /archives
tags:
url: /tags
github:
url: https://github.com/SunshineJunFu
target: _blank


# 你的头像url
avatar: /images/avatar.jpg
# avatar link
avatar_link: /
# 头像背景图
brand: /img/brand.jpg
# favicon
favicon: /favicon.ico

# email
email: fujun@mail.ustc.edu.cn

# 设置 Android L Chrome 浏览器状态栏颜色
color: '#3F51B5'

# 页面标题
tags_title: Tags
archives_title: Archives
categories_title: Categories


# 文章截断
excerpt_render: false
excerpt_length: 200
excerpt_link: Read More...
mathjax: true #false
archive_yearly: true

# 是否显示文章最后更新时间
show_last_updated: true

# 是否开启分享
share: true

# 是否开启打赏,关闭 reward: false
reward: false
# title: 谢谢大爷~
# wechat: /img/wechat.jpg #微信,关闭设为 false
# alipay: /img/alipay.jpg #支付宝,关闭设为 false

# 是否开启搜索
search: true

# 是否大屏幕下文章页隐藏导航
hideMenu: true

# 是否开启toc
# toc: false
toc:
list_number: true # 是否显示数字排序

# 文章页留言内容,hexo中所有变量及辅助函数等均可调用,具体请查阅 hexo.io
postMessage: #这里可以写作者留言,标签和 hexo 中所有变量及辅助函数等均可调用,示例:<a href="<%- url_for(page.path).replace(/index\.html$/, '') %>" target="_blank" rel="external"><%- page.permalink.replace(/index\.html$/, '') %></a>

# 站长统计,如要开启,输入CNZZ站点id,如 cnzz: 1255152447
cnzz: false

# 百度统计,如要开启,改为你的 key
baidu_tongji: false

# 腾讯分析,如要开启,输入站点id
tajs: false

# google
google_analytics: true
google_site_verification: true

# sogou站长验证 http://zhanzhang.sogou.com/
sogou_site_verification: false

# less
less:
compress: true
paths:
- source/css/style.less

# 以下评论插件开启一个即可
# 是否开启 disqus
disqus_shortname: false
# 是否开启友言评论, 填写友言用户id
uyan_uid: false
# 是否使用 gitment,https://github.com/imsun/gitment
gitment: false
# gitment:
# owner:
# repo:
# client_id:
# client_secret:

# Valine Comment system. https://valine.js.org
valine:
enable: true # 如果你想使用valine,请将值设置为 true
appId: jeA0VlYdrPRbE0nMW3DV5gow-gzGzoHsz # your leancloud appId
appKey: QvgEiq6wSQKvTmKUUM5pcMJh # your leancloud appKey
notify: false # Mail notify
verify: true # Verify code
avatar: mm # Gravatar style : mm/identicon/monsterid/wavatar/retro/hide
placeholder: share your ideas # Comment Box placeholder
guest_info: nick,mail # Comment header info
pageSize: 10 # comment list page size

# 是否开启Hyper Comments,填写id则启用,false则禁用。http://hypercomments.com
# Hyper Comments support. Write your id here, or false to disable
hyper_id: false


# 规范网址
# 让搜索引擎重定向你的不同域名、不同子域、同域不同目录的站点到你期望的路径
# https://support.google.com/webmasters/answer/139066
# 假设配置为 canonical: http://imys.net,那么从搜索引擎中 www.imys.net 进入会重定向到 imys.net
canonical: false

# 版权起始年份
since_year: 2015

# 用户页面中作者相关的描述性文字,如不需要设为 false
about: false #用户页面中作者相关的描述性文字,如不需要设为 false

# “不蒜子”访问量统计,详见 http://ibruce.info/2015/04/04/busuanzi/

counter: true

visit_counter:
site_uv: UV: # 注意 中文:
site_pv: PV:

# 动态定义title
title_change:
normal: Hi! Welcome Back!
leave: Where are you!

# 设置为 true 发布后将使用 unpkg cdn 最新的主题样式
# 如果想让你的自定义样式生效,把此项设为 false
cdn: true

# 设置为 true 将使用 lightbox render 图片
lightbox: true

# icp备案号 ICP_license: 京ICP备1234556号-1
ICP_license: false

feed:
type: atom
path: atom.xml
limit: 0