From b7dc9840a4c994f5655e8852cccc0fe1961854d5 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 11 Dec 2018 09:46:10 +0800 Subject: [PATCH] update --- _config.yml | 21 +++++++++++---------- layout/_partial/article.ejs | 11 ++++------- layout/_partial/scripts.ejs | 4 ++-- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/_config.yml b/_config.yml index 8d6a01a..4ba8ee1 100755 --- a/_config.yml +++ b/_config.yml @@ -1,7 +1,7 @@ ##################################### ## Material X ## -## version: 1.0 beta2 ## -## updated: 2018-11-25 ## +## version: 1.0 beta3 ## +## updated: 2018-12-11 ## ##################################### # >> 主题配置写法示例 --------------------------------------------------------------------- @@ -30,9 +30,9 @@ announcement: '本站使用 Mat # 友链的写法示例 links: -- name: xaoxuu's blog - avatar: https://xaoxuu.com/assets/img/avatar.jpg - url: https://xaoxuu.com/blog +- name: + avatar: + url: # 页脚社交信息的写法示例 social: @@ -50,10 +50,11 @@ motto: 这是我的座右铭 # 百度统计key baidu_analytics_key: xxx -# leancloud统计 -leancloud_analytics: - appId: xxx - appKey: xxx + +# 如果你用了leancloud的服务,在博客主目录的config中提供app_id和app_key +leancloud: + app_id: xxx + app_key: xxx # >> 主题配置 --------------------------------------------------------------------- @@ -99,7 +100,7 @@ widgets: color: '#3DC550' # 主题色 volume: 0.5 # 默认音量大小(0~1之间) mode: circulation # random (随机) single (单曲) circulation (列表循环) order (列表) - autoplay: false # false(手动播放) true(自动播放) + # autoplay: true # false(手动播放) true(自动播放) server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗) type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索) id: 746319661 # 歌曲/专辑/歌单 ID diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index e80012d..4efcab7 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -9,8 +9,8 @@ <%= date(post.date, config.date_format) %> - <% if (config.leancloud_analytics && config.leancloud_analytics.app_id && config.leancloud_analytics.app_key) { %> -
+ <% if (config.leancloud && config.leancloud.app_id && config.leancloud.app_key) { %> +
@@ -127,8 +127,8 @@ <% if (post.comments) { %> +

 评论

<% if (config.disqus_shortname) { %> -

 Disqus评论

⚠️ 无法加载评论系统,请确保您的网络能够正常访问 Disqus 。 @@ -137,7 +137,6 @@ <% } %> <% if (config.livere_uid){ %> -

 LiveRe评论

@@ -147,10 +146,8 @@ <% if (config.valine){ %> <% if (config.valine.enable && config.valine.app_id && config.valine.app_key){ %> -

 Valine评论

-
文明评论,请勿灌水。为了便于区分和接收回复提醒,请您在留言时填写一下昵称邮箱。 - 不定期清理没有昵称和灌水的评论。
+
文明评论,请勿灌水。为了便于区分和接收回复提醒,请您在留言时填写一下昵称邮箱
diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index a06a6eb..376bf1b 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -82,9 +82,9 @@ <% } %> -<% if (config.leancloud_analytics) { %> +<% if (config.leancloud) { %> - +