🐛 fix: progressBar && CDN
This commit is contained in:
parent
6afa47978e
commit
6b3edff55f
@ -35,7 +35,7 @@ cover:
|
|||||||
logo: false #/images/ayer.svg,如果不要直接设置成false
|
logo: false #/images/ayer.svg,如果不要直接设置成false
|
||||||
|
|
||||||
# 页面顶部进度条
|
# 页面顶部进度条
|
||||||
progressBar: ture
|
progressBar: true
|
||||||
|
|
||||||
# 网易云音乐插件
|
# 网易云音乐插件
|
||||||
music:
|
music:
|
||||||
|
@ -1,26 +1,20 @@
|
|||||||
<%- js('/js/jquery-2.0.3.min') %>
|
<%- js('/js/jquery-2.0.3.min') %>
|
||||||
<%- js('/js/jquery.justifiedGallery.min') %>
|
|
||||||
<%- js('/js/lazyload.min') %>
|
|
||||||
<%- js('/js/busuanzi-2.3.pure.min') %>
|
|
||||||
<%- js('/js/share') %>
|
<%- js('/js/share') %>
|
||||||
<% if (theme.fancybox){ %>
|
<%- js('/js/lazyload.min') %>
|
||||||
<%- js('fancybox/jquery.fancybox.min') %>
|
|
||||||
<% } %>
|
|
||||||
|
|
||||||
<% if (theme.subtitle.enable){ %>
|
<% if (theme.subtitle.enable){ %>
|
||||||
<script>
|
<script>
|
||||||
try {
|
try {
|
||||||
var typed = new Typed("#subtitle", {
|
var typed = new Typed("#subtitle", {
|
||||||
strings: ['<%= theme.subtitle.text %>','<%= theme.subtitle.text2 %>','<%= theme.subtitle.text3 %>'],
|
strings: ['<%= theme.subtitle.text %>', '<%= theme.subtitle.text2 %>', '<%= theme.subtitle.text3 %>'],
|
||||||
startDelay: <%= theme.subtitle.startDelay %>,
|
startDelay: <%= theme.subtitle.startDelay %>,
|
||||||
typeSpeed: <%= theme.subtitle.typeSpeed %>,
|
typeSpeed: <%= theme.subtitle.typeSpeed %>,
|
||||||
loop: <%= theme.subtitle.loop %>,
|
loop: <%= theme.subtitle.loop %>,
|
||||||
backSpeed: <%= theme.subtitle.backSpeed %>,
|
backSpeed: <%= theme.subtitle.backSpeed %>,
|
||||||
showCursor: <%= theme.subtitle.showCursor %>
|
showCursor: <%= theme.subtitle.showCursor %>
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
@ -34,7 +28,7 @@
|
|||||||
headingSelector: 'h1, h2, h3, h4, h5, h6',
|
headingSelector: 'h1, h2, h3, h4, h5, h6',
|
||||||
hasInnerContainers: true,
|
hasInnerContainers: true,
|
||||||
scrollSmooth: true,
|
scrollSmooth: true,
|
||||||
scrollContainer:'main',
|
scrollContainer: 'main',
|
||||||
positionFixedSelector: '.tocbot',
|
positionFixedSelector: '.tocbot',
|
||||||
positionFixedClass: 'is-position-fixed',
|
positionFixedClass: 'is-position-fixed',
|
||||||
fixedSidebarOffset: 'auto',
|
fixedSidebarOffset: 'auto',
|
||||||
@ -48,23 +42,30 @@
|
|||||||
</script>
|
</script>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<script>
|
|
||||||
var ayerConfig = {
|
|
||||||
mathjax: <%=theme.mathjax %>
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<%- js('js/ayer') %>
|
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
|
||||||
|
<%- js('js/ayer') %>
|
||||||
|
|
||||||
<% if (theme.image_viewer){ %>
|
<% if (theme.image_viewer){ %>
|
||||||
<%- partial('viewer') %>
|
<%- partial('viewer') %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<% if (theme.mathjax){ %>
|
<% if (theme.mathjax){ %>
|
||||||
<%- partial('mathjax') %>
|
<%- partial('mathjax') %>
|
||||||
|
<script>
|
||||||
|
var ayerConfig = {
|
||||||
|
mathjax: true
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<% } %>
|
||||||
|
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
|
||||||
|
<%- js('/js/busuanzi-2.3.pure.min') %>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
|
<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
|
||||||
|
|
||||||
|
<% if (theme.fancybox){ %>
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.2/dist/jquery.fancybox.min.css">
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.5.2/dist/jquery.fancybox.min.js"></script>
|
||||||
|
<% } %>
|
@ -24,8 +24,9 @@
|
|||||||
<link rel="shortcut icon" href="<%- theme.favicon %>" />
|
<link rel="shortcut icon" href="<%- theme.favicon %>" />
|
||||||
<% } %>
|
<% } %>
|
||||||
<%- css('css/main') %>
|
<%- css('css/main') %>
|
||||||
<%- js('/js/pace.min.js') %>
|
<% if (theme.progressBar){ %>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script>
|
||||||
|
<% } %>
|
||||||
<%- partial('google-analytics') %>
|
<%- partial('google-analytics') %>
|
||||||
<%- partial('baidu-analytics') %>
|
<%- partial('baidu-analytics') %>
|
||||||
</head>
|
</head>
|
||||||
|
1
source/fancybox/jquery.fancybox.min.css
vendored
1
source/fancybox/jquery.fancybox.min.css
vendored
File diff suppressed because one or more lines are too long
13
source/fancybox/jquery.fancybox.min.js
vendored
13
source/fancybox/jquery.fancybox.min.js
vendored
File diff suppressed because one or more lines are too long
8
source/js/jquery.justifiedGallery.min.js
vendored
8
source/js/jquery.justifiedGallery.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user