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-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-03-06 03:20:54 +00:00
|
|
|
|
2020-01-30 06:14:35 +00:00
|
|
|
</script>
|
|
|
|
<% } %>
|
|
|
|
|
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_v4.7.0 http://tscanlin.github.io/tocbot/
|
|
|
|
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') %>
|
2019-12-16 15:48:13 +00:00
|
|
|
|
2020-03-16 03:24:54 +00:00
|
|
|
<% if (theme.image_viewer){ %>
|
2020-01-20 07:09:23 +00:00
|
|
|
<%- partial('viewer') %>
|
|
|
|
<% } %>
|
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>
|
|
|
|
<% } %>
|
|
|
|
<% if (theme.busuanzi && theme.busuanzi.enable){ %>
|
|
|
|
<%- js('/js/busuanzi-2.3.pure.min') %>
|
2019-12-03 11:37:44 +00:00
|
|
|
<% } %>
|
2019-12-17 11:31:00 +00:00
|
|
|
|
2020-03-30 11:55:19 +00:00
|
|
|
<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
|
|
|
|
<% if (theme.clickLove){ %>
|
|
|
|
<script src="<%- url_for('js/clickLove.js') %>"></script>
|
|
|
|
<% } %>
|