From 64aedd761294da4518735218417a8df2efbc572a Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 8 Feb 2020 14:16:21 +0800 Subject: [PATCH] update --- _config.yml | 17 ++++++++++------- layout/_partial/scripts.ejs | 2 +- source/js/backstretch.min.js | 4 ++++ 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 source/js/backstretch.min.js diff --git a/_config.yml b/_config.yml index 38873ea..5744fa2 100755 --- a/_config.yml +++ b/_config.yml @@ -4,10 +4,10 @@ info: docs: https://xaoxuu.com/wiki/material-x/ cdn: # 要使用CDN,请在根目录的config文件中写上 use_cdn: true css: - style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.11.26/css/style.css + style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2.8/css/style.css js: - app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.11/js/app.js - search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.11/js/search.js + app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2.8/js/app.js + search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2.8/js/search.js volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1.0.6/js/volantis.min.js @@ -49,11 +49,14 @@ word_count: false # 幻灯片 backstretch: - position: cover # cover: 封面背景 full: 整个网页背景 + position: full # cover: 封面背景 full: 整个网页背景 duration: 6000 # 持续时间(毫秒) fade: 2500 # 渐变(毫秒) images: - - https://img.vim-cn.com/29/91197b04c13f512f734a76d4ac422d89dbe229.jpg + - https://i.loli.net/2020/02/08/HNuVoted2mUxILl.jpg + - https://i.loli.net/2020/02/08/dNJyR4LHtarTqPu.jpg + - https://i.loli.net/2020/02/08/yXx4GwgZYdi81Qs.jpg + - https://i.loli.net/2020/02/08/RP7JpGvWaCYfuB6.jpg @@ -132,7 +135,7 @@ layout: # 列表中每一篇文章的meta信息 meta: [title, author, date, categories, wordcount, top] # 列表类页面的侧边栏 - sidebar: [author, plain, list, grid, category, tagcloud] + sidebar: [author, plain, list, grid, category, tagcloud, music] # 文章页面布局 article: # 文章页面主体元素,你也可以在页面的Front-matter中设置 @@ -206,7 +209,7 @@ sidebar: target: _blank server: netease # netease(网易云音乐)tencent(QQ音乐) xiami(虾米) kugou(酷狗) type: playlist # song (单曲) album (专辑) playlist (歌单) search (搜索) - id: 2615636388 # 歌曲/专辑/歌单 ID + id: 3175833810 # 歌曲/专辑/歌单 ID - widget: list icon: fas fa-thumbs-up title: 强烈推荐 diff --git a/layout/_partial/scripts.ejs b/layout/_partial/scripts.ejs index e94de59..74d206c 100755 --- a/layout/_partial/scripts.ejs +++ b/layout/_partial/scripts.ejs @@ -63,7 +63,7 @@ } %> <% if (imgs != undefined && theme.backstretch.position != undefined){ %> - +