Skip to content

Commit b7dc984

Browse files
committed
update
1 parent 1e3c52e commit b7dc984

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

_config.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#####################################
22
## Material X ##
3-
## version: 1.0 beta2 ##
4-
## updated: 2018-11-25 ##
3+
## version: 1.0 beta3 ##
4+
## updated: 2018-12-11 ##
55
#####################################
66

77
# >> 主题配置写法示例 ---------------------------------------------------------------------
@@ -30,9 +30,9 @@ announcement: '本站使用 <b><a href="https://xaoxuu.com/wiki/material-x/">Mat
3030

3131
# 友链的写法示例
3232
links:
33-
- name: xaoxuu's blog
34-
avatar: https://xaoxuu.com/assets/img/avatar.jpg
35-
url: https://xaoxuu.com/blog
33+
- name:
34+
avatar:
35+
url:
3636

3737
# 页脚社交信息的写法示例
3838
social:
@@ -50,10 +50,11 @@ motto: 这是我的座右铭
5050

5151
# 百度统计key
5252
baidu_analytics_key: xxx
53-
# leancloud统计
54-
leancloud_analytics:
55-
appId: xxx
56-
appKey: xxx
53+
54+
# 如果你用了leancloud的服务,在博客主目录的config中提供app_id和app_key
55+
leancloud:
56+
app_id: xxx
57+
app_key: xxx
5758

5859

5960
# >> 主题配置 ---------------------------------------------------------------------
@@ -99,7 +100,7 @@ widgets:
99100
color: '#3DC550' # 主题色
100101
volume: 0.5 # 默认音量大小(0~1之间)
101102
mode: circulation # random (随机) single (单曲) circulation (列表循环) order (列表)
102-
autoplay: false # false(手动播放) true(自动播放)
103+
# autoplay: true # false(手动播放) true(自动播放)
103104
server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗)
104105
type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索)
105106
id: 746319661 # 歌曲/专辑/歌单 ID

layout/_partial/article.ejs

+4-7
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<i class="fas fa-calendar-alt fa-fw" aria-hidden="true"></i>
1010
<%= date(post.date, config.date_format) %>
1111
</time>
12-
<% if (config.leancloud_analytics && config.leancloud_analytics.app_id && config.leancloud_analytics.app_key) { %>
13-
<div class="browse leancloud_analytics"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
12+
<% if (config.leancloud && config.leancloud.app_id && config.leancloud.app_key) { %>
13+
<div class="browse leancloud"><i class="fas fa-eye fa-fw" aria-hidden="true"></i>
1414
<span id="<%= url_for(post.path) %>" class="leancloud_visitors" data-flag-title="<%= post.title %>">
1515
<span class="leancloud-visitors-count"></span>
1616
</span>
@@ -127,8 +127,8 @@
127127
128128
<% if (post.comments) { %>
129129
130+
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;评论</h4>
130131
<% if (config.disqus_shortname) { %>
131-
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Disqus评论</h4>
132132
<section id="comments">
133133
<div id="disqus_thread">
134134
⚠️ 无法加载评论系统,请确保您的网络能够正常访问 <a href="https://disqus.com">Disqus</a>
@@ -137,7 +137,6 @@
137137
<% } %>
138138
139139
<% if (config.livere_uid){ %>
140-
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;LiveRe评论</h4>
141140
<section id="comments">
142141
<div id="lv-container" data-id="city" data-uid="<%= config.livere_uid %>">
143142
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
@@ -147,10 +146,8 @@
147146
148147
<% if (config.valine){ %>
149148
<% if (config.valine.enable && config.valine.app_id && config.valine.app_key){ %>
150-
<h4><i class="fas fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Valine评论</h4>
151149
<div class="subtitle">
152-
<h6><b>文明评论,请勿灌水。</b>为了便于区分和接收回复提醒,请您在留言时填写一下<b>昵称</b><b>邮箱</b>
153-
不定期清理没有昵称和灌水的评论。</h6>
150+
<h6><b>文明评论,请勿灌水。</b>为了便于区分和接收回复提醒,请您在留言时填写一下<b>昵称</b><b>邮箱</b></h6>
154151
<div>
155152
<section id="comments">
156153
<div id="valine_container" class="valine_thread">

layout/_partial/scripts.ejs

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@
8282
<% } %>
8383

8484

85-
<% if (config.leancloud_analytics) { %>
85+
<% if (config.leancloud) { %>
8686
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
87-
<script>AV.initialize("<%= config.leancloud_analytics.app_id %>", "<%= config.leancloud_analytics.app_key %>");</script>
87+
<script>AV.initialize("<%= config.leancloud.app_id %>", "<%= config.leancloud.app_key %>");</script>
8888
<script>
8989
function showTime(Counter) {
9090
var query = new AV.Query(Counter);

0 commit comments

Comments
 (0)