From 94e126241d26a3f849273d7b14f3e775fb9281d9 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Thu, 4 Apr 2019 00:42:30 +0800 Subject: [PATCH] update --- _config.yml | 10 +- layout/_cover/search.ejs | 27 ++--- layout/layout.ejs | 8 +- source/js/app.js | 4 +- source/less/_base.less | 255 ++++++++++++++++++++------------------- source/less/_header.less | 2 +- 6 files changed, 151 insertions(+), 155 deletions(-) diff --git a/_config.yml b/_config.yml index 03a6051..17388c8 100755 --- a/_config.yml +++ b/_config.yml @@ -4,9 +4,9 @@ info: docs: https://xaoxuu.com/wiki/material-x/ cdn: # 把对应的那一行注释掉就使用本地的文件 css: - style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.9/css/style.css + style: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.10/css/style.css js: - app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.9/js/app.js + app: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.10/js/app.js search: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.4.9/js/search.js volantis: https://cdn.jsdelivr.net/gh/xaoxuu/volantis@1/js/volantis.min.js @@ -46,8 +46,8 @@ updated_date_format: 'llll' # 文章更新日期的格式 ############################### 自定义 ############################### -# 主页封面 -home_cover: +# page的封面 +cover: scheme: search # 后期将会提供多种封面方案 # height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面都只占半个屏幕高度 title: "xaoxuu" @@ -57,7 +57,7 @@ home_cover: features: - name: 博文 icon: fas fa-rss - url: '#posts' + url: / - name: 项目 icon: fas fa-code-branch url: projects/ diff --git a/layout/_cover/search.ejs b/layout/_cover/search.ejs index 06daa51..582188d 100755 --- a/layout/_cover/search.ejs +++ b/layout/_cover/search.ejs @@ -1,33 +1,26 @@ -<% if (theme.home_cover.logo) { %> - +<% if (theme.cover.logo) { %> + <% } else { %> -

<%- theme.home_cover.title ? theme.home_cover.title : config.title %>

+

<%- theme.cover.title ? theme.cover.title : config.title %>

<% } %>
<% if (theme.search.enable === true) { %> <% } %>