58 lines
1.9 KiB
JavaScript
58 lines
1.9 KiB
JavaScript
<%- js('/js/jquery-3.6.0.min') %> <%- js('/js/lazyload.min') %>
|
|
<!-- Tocbot -->
|
|
<% if (theme.toc && is_post() && !page.no_toc){ %> <%- js('/js/tocbot.min') %>
|
|
<script>
|
|
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.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.js"></script>
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://cdn.staticfile.org/jquery-modal/0.9.2/jquery.modal.min.css"
|
|
/>
|
|
<script src="https://cdn.staticfile.org/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js"></script>
|
|
<%- js('dist/main') %>
|
|
<!-- ImageViewer -->
|
|
<% if (theme.image_viewer){ %> <%- partial('viewer') %> <% } %>
|
|
<!-- MathJax -->
|
|
<% if (theme.mathjax){ %> <%- partial('mathjax') %>
|
|
<script>
|
|
var ayerConfig = {
|
|
mathjax: true,
|
|
};
|
|
</script>
|
|
<% } %>
|
|
<!-- Katex -->
|
|
<% if (theme.katex.enable){ %> <%- partial('katex') %> <% } %>
|
|
<!-- busuanzi -->
|
|
<% if (theme.busuanzi && theme.busuanzi.enable){ %> <%-
|
|
js('/js/busuanzi-2.3.pure.min') %> <% } %>
|
|
<!-- ClickLove -->
|
|
<% if (theme.click_effect===1){ %> <%- js('/js/clickLove') %> <% } %>
|
|
<!-- ClickBoom1 -->
|
|
<% if (theme.click_effect===2){ %>
|
|
<script src="https://cdn.staticfile.org/animejs/3.2.1/anime.min.js"></script>
|
|
<%- js('/js/clickBoom1') %> <% } %>
|
|
<!-- ClickBoom2 -->
|
|
<% if (theme.click_effect===3){ %> <%- js('/js/clickBoom2') %> <% } %>
|
|
<!-- CodeCopy -->
|
|
<% if (theme.copy_btn == true) { %> <%- css('/css/clipboard') %> <%-
|
|
partial('post/clipboard') %> <% } %>
|
|
<!-- CanvasBackground -->
|
|
<% if (theme.canvas_bg == 1) { %> <%- js('/js/dz') %> <% } %>
|
|
<script>
|
|
if (window.mermaid) {
|
|
mermaid.initialize({ theme: "<%= theme.mermaid.theme %>" });
|
|
}
|
|
</script>
|