🎨 fix: code

This commit is contained in:
沈宇
2020-04-23 15:04:32 +08:00
parent a0e92eb20c
commit 7bf0adfd98
3 changed files with 16 additions and 16 deletions

View File

@@ -1,5 +1,6 @@
<%- js('/js/jquery-2.0.3.min') %>
<%- js('/js/lazyload.min') %>
<!-- Subtitle -->
<% if (theme.subtitle.enable){ %>
<script>
try {
@@ -12,15 +13,14 @@
showCursor: <%= theme.subtitle.showCursor %>
});
} catch (err) {
console.log(err)
}
</script>
<% } %>
<!-- Tocbot -->
<% 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',
@@ -34,16 +34,15 @@
});
</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') %>
<!-- ImageViewer -->
<% if (theme.image_viewer){ %>
<%- partial('viewer') %>
<% } %>
<!-- MathJax -->
<% if (theme.mathjax){ %>
<%- partial('mathjax') %>
<script>
@@ -52,20 +51,20 @@
}
</script>
<% } %>
<!-- Katex -->
<% if (theme.katex.enable){ %>
<%- partial('katex') %>
<% } %>
<!-- busuanzi -->
<% 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>
<!-- ClickLove -->
<% if (theme.clickLove){ %>
<%- js('/js/clickLove') %>
<%- js('/js/clickLove') %>
<% } %>
<!-- 复制 -->
<!-- CodeCopy -->
<% if (theme.copy_btn == true) { %>
<%- css('/css/clipboard') %>
<%- partial('post/clipboard') %>
<% } %>
<%- css('/css/clipboard') %>
<%- partial('post/clipboard') %>
<% } %>