65 lines
1.8 KiB
Plaintext
65 lines
1.8 KiB
Plaintext
<%- js('/js/jquery-2.0.3.min') %>
|
|
<%- js('/js/lazyload.min') %>
|
|
<% if (theme.subtitle.enable){ %>
|
|
<script>
|
|
try {
|
|
var typed = new Typed("#subtitle", {
|
|
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 %>
|
|
});
|
|
} catch (err) {
|
|
}
|
|
|
|
</script>
|
|
<% } %>
|
|
|
|
<% if (theme.toc && is_post() && !page.no_toc){ %>
|
|
<%- 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,
|
|
scrollContainer: 'main',
|
|
positionFixedSelector: '.tocbot',
|
|
positionFixedClass: 'is-position-fixed',
|
|
fixedSidebarOffset: 'auto'
|
|
});
|
|
</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">
|
|
<script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js"></script>
|
|
<%- js('dist/main') %>
|
|
|
|
<% if (theme.image_viewer){ %>
|
|
<%- partial('viewer') %>
|
|
<% } %>
|
|
<% if (theme.mathjax){ %>
|
|
<%- partial('mathjax') %>
|
|
<script>
|
|
var ayerConfig = {
|
|
mathjax: true
|
|
}
|
|
</script>
|
|
<% } %>
|
|
<% if (theme.katex.enable){ %>
|
|
<%- partial('katex') %>
|
|
<% } %>
|
|
<% 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>
|
|
<% if (theme.clickLove){ %>
|
|
<%- js('/js/clickLove') %>
|
|
<% } %> |