hexo-theme-ayer/layout/_partial/after-footer.ejs

58 lines
1.9 KiB
JavaScript
Raw Normal View History

2021-07-23 05:26:32 +00:00
<%- js('/js/jquery-3.6.0.min') %> <%- js('/js/lazyload.min') %>
2020-04-23 07:04:32 +00:00
<!-- Tocbot -->
2021-04-14 03:26:09 +00:00
<% if (theme.toc && is_post() && !page.no_toc){ %> <%- js('/js/tocbot.min') %>
2020-01-20 07:09:23 +00:00
<script>
tocbot.init({
2021-04-14 03:26:09 +00:00
tocSelector: ".tocbot",
contentSelector: ".article-entry",
headingSelector: "h1, h2, h3, h4, h5, h6",
2020-01-20 07:09:23 +00:00
hasInnerContainers: true,
scrollSmooth: true,
2021-04-14 03:26:09 +00:00
scrollContainer: "main",
positionFixedSelector: ".tocbot",
positionFixedClass: "is-position-fixed",
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>
2021-04-14 03:26:09 +00:00
<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 -->
2021-04-14 03:26:09 +00:00
<% if (theme.image_viewer){ %> <%- partial('viewer') %> <% } %>
2020-04-23 07:04:32 +00:00
<!-- MathJax -->
2021-04-14 03:26:09 +00:00
<% if (theme.mathjax){ %> <%- partial('mathjax') %>
2020-03-06 03:20:54 +00:00
<script>
var ayerConfig = {
2021-04-14 03:26:09 +00:00
mathjax: true,
};
2020-03-06 03:20:54 +00:00
</script>
<% } %>
2020-04-23 07:04:32 +00:00
<!-- Katex -->
2021-04-14 03:26:09 +00:00
<% if (theme.katex.enable){ %> <%- partial('katex') %> <% } %>
2020-04-23 07:04:32 +00:00
<!-- busuanzi -->
2021-04-14 03:26:09 +00:00
<% if (theme.busuanzi && theme.busuanzi.enable){ %> <%-
js('/js/busuanzi-2.3.pure.min') %> <% } %>
2020-04-23 07:04:32 +00:00
<!-- ClickLove -->
2021-04-14 03:26:09 +00:00
<% if (theme.click_effect===1){ %> <%- js('/js/clickLove') %> <% } %>
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>
2021-04-14 03:26:09 +00:00
<%- js('/js/clickBoom1') %> <% } %>
2020-06-01 10:44:02 +00:00
<!-- ClickBoom2 -->
2021-04-14 03:26:09 +00:00
<% if (theme.click_effect===3){ %> <%- js('/js/clickBoom2') %> <% } %>
2020-04-23 07:04:32 +00:00
<!-- CodeCopy -->
2021-04-14 03:26:09 +00:00
<% if (theme.copy_btn == true) { %> <%- css('/css/clipboard') %> <%-
partial('post/clipboard') %> <% } %>
<!-- CanvasBackground -->
2021-04-14 03:26:09 +00:00
<% if (theme.canvas_bg == 1) { %> <%- js('/js/dz') %> <% } %>
<script>
if (window.mermaid) {
mermaid.initialize({ theme: "<%= theme.mermaid.theme %>" });
}
</script>