From 3d7f29747ef92e7358dac9edae27f100efc28dc4 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 21 Feb 2020 17:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E9=80=89=E9=98=B4=E5=BD=B1=E5=92=8C?= =?UTF-8?q?=E6=AF=9B=E7=8E=BB=E7=92=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 29 +++++++++++++++-------------- layout/_cover/search.ejs | 5 +++-- layout/_partial/article.ejs | 2 +- layout/_partial/header.ejs | 6 +++--- layout/_partial/post.ejs | 2 +- layout/_third-party/comments.ejs | 2 +- layout/_widget/blogger.ejs | 2 +- layout/_widget/category.ejs | 2 +- layout/_widget/copyright.ejs | 2 +- layout/_widget/donate.ejs | 2 +- layout/_widget/grid.ejs | 2 +- layout/_widget/list.ejs | 2 +- layout/_widget/music.ejs | 2 +- layout/_widget/related_posts.ejs | 2 +- layout/_widget/tagcloud.ejs | 2 +- layout/_widget/text.ejs | 2 +- layout/_widget/toc.ejs | 2 +- layout/links.ejs | 2 +- source/less/_base.less | 6 ++++-- source/less/_header.less | 1 - 20 files changed, 40 insertions(+), 37 deletions(-) diff --git a/_config.yml b/_config.yml index 77c4c70..bcba8bd 100755 --- a/_config.yml +++ b/_config.yml @@ -14,7 +14,17 @@ info: commentTyping: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@20.2/js/commentTyping.js +############################### 服务开关 ############################### +scrollreveal: true # 页面滚动显示动画 +nodewaves: true # 按钮点击效果 +busuanzi: true # 访问量统计 +# fastclick: true +commentTyping: true # 文本框打字机特效 +# wordcount: true # 文章字数统计、阅读时长,开启需要安装插件: npm i --save hexo-wordcount + + ############################### 主题样式 ############################### +# 样式 style: # 卡片阴影效果 shadow: @@ -24,25 +34,13 @@ style: # card: true # 毛玻璃效果 具体效果调整在: source/less/_color.less blur: - nav: true + navbar: true widget: true body: true # 建议: # 有背景图:开启毛玻璃,关闭卡片阴影 # 无背景图:关闭毛玻璃,开启卡片阴影 - -############################### 服务开关 ############################### -scrollreveal: true # 页面滚动显示动画 -nodewaves: true # 按钮点击效果 -busuanzi: true # 访问量统计 -# fastclick: true -commentTyping: true # 文本框打字机特效 -# wordcount: true # 文章字数统计、阅读时长,开启需要安装插件: npm i --save hexo-wordcount - - - -############################### 自定义 ############################### # 幻灯片背景 backstretch: position: background # cover: 封面背景 background: 整个网页背景 @@ -55,13 +53,15 @@ backstretch: - https://i.loli.net/2020/02/08/RP7JpGvWaCYfuB6.jpg +############################### 自定义 ############################### # page的封面 cover: scheme: search # 后期将会提供多种封面布局方案 height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面都只占半个屏幕高度 title: Live Demo # logo: assets/logo.png # logo和title只显示一个,若同时设置,则只显示logo - # search_placeholder: '搜索' + search: 'for Hexo 4.2+' + # color: '#FFF' # 菜单文字颜色 # 主页封面菜单 features: - name: 博文 @@ -137,6 +137,7 @@ navbar: icon: fas fa-info-circle url: about/ rel: nofollow + # search: 搜索一下 # 搜索框文字 diff --git a/layout/_cover/search.ejs b/layout/_cover/search.ejs index e742dfe..16686cb 100755 --- a/layout/_cover/search.ejs +++ b/layout/_cover/search.ejs @@ -6,8 +6,8 @@ <% if (theme.search.enable === true) { %> <% } %> @@ -16,7 +16,8 @@ <% if (theme.cover.features) { %> <% (theme.cover.features || []).forEach(function(value){ %>
  • - rel="<%- value.rel %>" <% } %> diff --git a/layout/_partial/article.ejs b/layout/_partial/article.ejs index 2fbb715..7508aa7 100755 --- a/layout/_partial/article.ejs +++ b/layout/_partial/article.ejs @@ -1,7 +1,7 @@ <% var sections = page.body ? page.body : theme.layout.on_page.body; %> <% sections.forEach(function(widget_id){ %> <% if (widget_id == 'article') { %> -
    +
    <%- partial('meta', {post: post, position: 'header'}) %>
    diff --git a/layout/_partial/header.ejs b/layout/_partial/header.ejs index 87c109f..882326a 100755 --- a/layout/_partial/header.ejs +++ b/layout/_partial/header.ejs @@ -1,4 +1,4 @@ -
    +
    @@ -41,7 +41,7 @@ @@ -64,7 +64,7 @@
    -