fix: 修復本地搜索文章鏈接無法跳轉bugs

feat: 當點擊評論框時,valine背景圖片隱藏
feat: 網頁進入動畫效果可關閉
style: 部分css和js 調整
This commit is contained in:
Jerry
2020-09-19 23:46:53 +08:00
parent c7318a3793
commit a2551d2d29
17 changed files with 272 additions and 258 deletions

View File

@@ -68,4 +68,7 @@ div
include ./head/aplayer.pug
if theme.pjax.enable
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
!=partial('includes/third-party/pjax', {}, {cache:theme.fragment_cache})
!=partial('includes/third-party/baidu_push', {}, {cache:theme.fragment_cache})

View File

@@ -124,7 +124,6 @@ script.
js: '!{theme.CDN.justifiedGallery_js}',
css: '!{theme.CDN.justifiedGallery_css}'
},
baiduPush: !{theme.baidu_push},
isPhotoFigcaption: !{theme.photofigcaption},
islazyload: !{theme.lazyload.enable},
isanchor: !{theme.anchor}

View File

@@ -47,14 +47,14 @@ header#page-header(class=isHomeClass style=bg_img)
include ./post-info.pug
else if is_home()
#site-info
h1#site_title=site_title
#site_subtitle
h1#site-title=site_title
#site-subtitle
span#subtitle
if(theme.social)
#site_social_icons
!=fragment_cache('social', function(){return partial('includes/header/social')})
#scroll_down
#scroll-down
i.fas.fa-angle-down.scroll-down-effects
else
#page_site-info
h1#site_title=site_title
#page-site-info
h1#site-title=site_title

View File

@@ -78,4 +78,4 @@ mixin postUI(posts)
if theme.ad && theme.ad.index
if (index + 1) % 3 == 0
.recent-post-item.ad_height!=theme.ad.index
.recent-post-item.ad-height!=theme.ad.index

View File

@@ -1 +1,4 @@
if top_img === false
h1.page-title= page.title
#artitalk_main

View File

@@ -0,0 +1,15 @@
if theme.baidu_push
script.
(function(){
const bp = document.createElement('script');
const curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https'){
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else{
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
bp.dataset.pjax = ''
const s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})()