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 @@
    -