diff --git a/README.md b/README.md
index 696c034..5eeefee 100755
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@
curl -O 'https://raw.githubusercontent.com/xaoxuu/hexo.sh/master/hexo.sh' && chmod 777 hexo.sh && . hexo.sh m x
```
-如果你选择了脚本安装,现在可以直接往下看 [配置项](# 博客配置项_config.yml) 啦~
+如果你选择了脚本安装,现在可以直接往下看配置项啦~
### B. 手动安装
@@ -50,7 +50,7 @@ npm i -S hexo-generator-search hexo-generator-feed hexo-renderer-less hexo-autop
-## 博客配置项 `_config.yml`
+## 博客配置项
这一部分属于博客配置,要修改的文件是博客主目录的`_config.yml`文件。
@@ -81,22 +81,23 @@ livere_shortname: #你的disqus的shortname#
```yaml
# 推荐文章
recommended_posts:
- server: https://api.truelaurel.com #后端推荐服务器地址
- timeoutInMillis: 10000 #服务时长,超过此时长,则使用离线推荐模式
- internalLinks: 3 #内部文章数量
- externalLinks: 2 #外部文章数量
- fixedNumber: false
- autoDisplay: false #自动在文章底部显示推荐文章
+ autoDisplay: false # 自动在文章底部显示推荐文章,如果你使用Material-X主题,这里要设置为false。
+ server: https://api.truelaurel.com # 后端推荐服务器地址
+ timeoutInMillis: 10000 # 服务时长,超过此时长,则使用离线推荐模式
excludePattern: []
titleHtml:
推荐文章
#自定义标题
-
+ internalLinks: 3 # 内部文章数量
+ externalLinks: 2 # 外部文章数量
+ fixedNumber: false
```
+> 注意:autoDisplay: false 这一项不要修改,因为显示效果不佳,我已经在主题里给它设置显示位置了。
+
-## 主题配置项 `themes/material-x/_config.yml`
+## 主题配置项
-这个才是主题的配置项,别搞错了哦。
+`themes/material-x/_config.yml` 这个才是主题的配置项,别搞错了哦。
diff --git a/_config.yml b/_config.yml
index 5d458f0..6ab0e59 100755
--- a/_config.yml
+++ b/_config.yml
@@ -1,25 +1,5 @@
-# Search
-search:
- enable: true
- service: hexo
- # google
- google_api_key:
- google_engine_id:
- # algolia
- algolia_app_id:
- algolia_api_key:
- algolia_index_name:
- # azure
- azure_service_name:
- azure_index_name:
- azure_query_key:
- # baidu
- baidu_api_id:
+# 导航栏
-# friends link
-links:
-
-# navigation menu
menu:
- name: 主页
slug: about
@@ -38,22 +18,31 @@ menu:
fa: archive
url: /archives
-
-# widgets
+# 右边的小窗口
widgets:
- - about
- - categories
- - tagcloud
- # - socials
- # - music
-
-# Less
-less:
- compress: true
+ - about # 目前只显示个人头像,如果注释掉这一行就不显示
+ - categories # 显示分类
+ - tagcloud # 显示tags
+ # - socials # 显示自己的社交信息
+ # - music # 显示自己的网易云歌单
+# 右边的联系信息小窗口
+contacts:
+- name: Email
+ badget: me@xaoxuu.com
+ url: mailto:me@xaoxuu.com
+- name: GitHub
+ badget: "@xaoxuu"
+ url: https://github.com/xaoxuu
+# - name: Instagram
+# badget: "@xaoxuu"
+# url: https://www.instagram.com/xaoxuu
+# - name: Twitter
+# badget: "@xaoxuu"
+# url: https://www.twitter.com/xaoxuu
-# use url, not username
+# 页面底部的社交信息
social:
- slug: envelope
url: mailto:me@xaoxuu.com
@@ -69,22 +58,36 @@ social:
url: https://music.163.com/#/user/home?id=63035382
+# 推荐文章 npm install hexo-recommended-posts --save
+recommended_posts:
+ enabled: true
+
+# Search
+search:
+ enable: true
+ service: hexo
+ # google
+ google_api_key:
+ google_engine_id:
+ # algolia
+ algolia_app_id:
+ algolia_api_key:
+ algolia_index_name:
+ # azure
+ azure_service_name:
+ azure_index_name:
+ azure_query_key:
+ # baidu
+ baidu_api_id:
+
+# friends link
+links:
-contacts:
-- name: Email
- badget: me@xaoxuu.com
- url: mailto:me@xaoxuu.com
-- name: GitHub
- badget: "@xaoxuu"
- url: https://github.com/xaoxuu
-# - name: Instagram
-# badget: "@xaoxuu"
-# url: https://www.instagram.com/xaoxuu
-# - name: Twitter
-# badget: "@xaoxuu"
-# url: https://www.twitter.com/xaoxuu
-# 推荐文章 npm install hexo-recommended-posts --save
-recommended_posts:
- enabled: true # 根目录的_config.yml中的recommended_posts/autoDisplay: 要设置为false
+
+# Less
+less:
+ compress: true
+
+