2019-12-03 11:37:44 +00:00
|
|
|
<%- js('/js/jquery-2.0.3.min') %>
|
2020-03-06 03:20:54 +00:00
|
|
|
<%- js('/js/lazyload.min') %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- Subtitle -->
|
2020-01-30 06:14:35 +00:00
|
|
|
<% if (theme.subtitle.enable){ %>
|
|
|
|
<script>
|
2020-02-05 03:21:08 +00:00
|
|
|
try {
|
|
|
|
var typed = new Typed("#subtitle", {
|
2020-03-06 03:20:54 +00:00
|
|
|
strings: ['<%= theme.subtitle.text %>', '<%= theme.subtitle.text2 %>', '<%= theme.subtitle.text3 %>'],
|
|
|
|
startDelay: <%= theme.subtitle.startDelay %>,
|
|
|
|
typeSpeed: <%= theme.subtitle.typeSpeed %>,
|
|
|
|
loop: <%= theme.subtitle.loop %>,
|
|
|
|
backSpeed: <%= theme.subtitle.backSpeed %>,
|
|
|
|
showCursor: <%= theme.subtitle.showCursor %>
|
2020-01-30 06:14:35 +00:00
|
|
|
});
|
2020-02-05 03:21:08 +00:00
|
|
|
} catch (err) {
|
2020-04-23 07:04:32 +00:00
|
|
|
console.log(err)
|
2020-02-05 03:21:08 +00:00
|
|
|
}
|
2020-01-30 06:14:35 +00:00
|
|
|
</script>
|
|
|
|
<% } %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- Tocbot -->
|
2020-03-24 14:19:01 +00:00
|
|
|
<% if (theme.toc && is_post() && !page.no_toc){ %>
|
2020-01-20 07:09:23 +00:00
|
|
|
<%- js('/js/tocbot.min') %>
|
|
|
|
<script>
|
|
|
|
tocbot.init({
|
|
|
|
tocSelector: '.tocbot',
|
|
|
|
contentSelector: '.article-entry',
|
|
|
|
headingSelector: 'h1, h2, h3, h4, h5, h6',
|
|
|
|
hasInnerContainers: true,
|
|
|
|
scrollSmooth: true,
|
2020-03-06 03:20:54 +00:00
|
|
|
scrollContainer: 'main',
|
2020-01-20 07:09:23 +00:00
|
|
|
positionFixedSelector: '.tocbot',
|
|
|
|
positionFixedClass: 'is-position-fixed',
|
2020-03-24 13:57:41 +00:00
|
|
|
fixedSidebarOffset: 'auto'
|
2020-01-20 07:09:23 +00:00
|
|
|
});
|
|
|
|
</script>
|
2019-12-03 11:37:44 +00:00
|
|
|
<% } %>
|
2019-12-16 15:48:13 +00:00
|
|
|
<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">
|
2020-03-06 03:20:54 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
|
2020-03-24 04:51:01 +00:00
|
|
|
<%- js('dist/main') %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- ImageViewer -->
|
2020-03-16 03:24:54 +00:00
|
|
|
<% if (theme.image_viewer){ %>
|
2020-01-20 07:09:23 +00:00
|
|
|
<%- partial('viewer') %>
|
|
|
|
<% } %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- MathJax -->
|
2019-12-03 11:37:44 +00:00
|
|
|
<% if (theme.mathjax){ %>
|
2020-01-20 07:09:23 +00:00
|
|
|
<%- partial('mathjax') %>
|
2020-03-06 03:20:54 +00:00
|
|
|
<script>
|
|
|
|
var ayerConfig = {
|
|
|
|
mathjax: true
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<% } %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- Katex -->
|
2020-03-30 12:27:17 +00:00
|
|
|
<% if (theme.katex.enable){ %>
|
|
|
|
<%- partial('katex') %>
|
|
|
|
<% } %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- busuanzi -->
|
2020-03-06 03:20:54 +00:00
|
|
|
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
|
|
|
|
<%- js('/js/busuanzi-2.3.pure.min') %>
|
2019-12-03 11:37:44 +00:00
|
|
|
<% } %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- ClickLove -->
|
2020-06-02 12:41:10 +00:00
|
|
|
<% if (theme.click_effect===1){ %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<%- js('/js/clickLove') %>
|
2020-04-12 13:17:46 +00:00
|
|
|
<% } %>
|
2020-06-02 12:41:10 +00:00
|
|
|
<!-- ClickBoom1 -->
|
|
|
|
<% if (theme.click_effect===2){ %>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/animejs@latest/anime.min.js"></script>
|
|
|
|
<%- js('/js/clickBoom1') %>
|
2020-05-22 22:45:12 +00:00
|
|
|
<% } %>
|
2020-06-01 10:44:02 +00:00
|
|
|
<!-- ClickBoom2 -->
|
2020-06-02 12:41:10 +00:00
|
|
|
<% if (theme.click_effect===3){ %>
|
2020-06-01 10:44:02 +00:00
|
|
|
<%- js('/js/clickBoom2') %>
|
|
|
|
<% } %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<!-- CodeCopy -->
|
2020-04-12 13:17:46 +00:00
|
|
|
<% if (theme.copy_btn == true) { %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<%- css('/css/clipboard') %>
|
|
|
|
<%- partial('post/clipboard') %>
|
2020-06-02 08:01:50 +00:00
|
|
|
<% } %>
|
|
|
|
<!-- CanvasBackground -->
|
|
|
|
<% if (theme.canvas_bg == 1) { %>
|
|
|
|
<%- js('/js/dz') %>
|
2020-04-23 07:04:32 +00:00
|
|
|
<% } %>
|