添加 mermaid 支持,提高gitalk版本,修复 busuanzi引用span错误
This commit is contained in:
parent
343b1435c1
commit
76096640f4
@ -157,6 +157,13 @@ katex:
|
||||
allpost: true
|
||||
copy_tex: false
|
||||
|
||||
# mermaid 三个选项缺一不可
|
||||
mermaid:
|
||||
enable: true
|
||||
version: 8.5.2
|
||||
cdn: https://cdn.bootcdn.net/ajax/libs/mermaid
|
||||
theme: forest
|
||||
|
||||
# 网站成立年份(默认为 2019,若填入年份小于当前年份,则显示为 2018-2019 类似的格式)
|
||||
since: 2015
|
||||
|
||||
|
@ -63,4 +63,13 @@
|
||||
<!-- CanvasBackground -->
|
||||
<% if (theme.canvas_bg == 1) { %>
|
||||
<%- js('/js/dz') %>
|
||||
<% } %>
|
||||
<!-- mermaid -->
|
||||
<% if (theme.mermaid.enable) { %>
|
||||
<script src='<%= theme.mermaid.cdn %>/<%= theme.mermaid.version %>/mermaid.min.js'></script>
|
||||
<script>
|
||||
if (window.mermaid) {
|
||||
mermaid.initialize({theme: '<%= theme.mermaid.theme %>'});
|
||||
}
|
||||
</script>
|
||||
<% } %>
|
@ -1,5 +1,5 @@
|
||||
<span>
|
||||
<span><i class="ri-user-3-fill"></i><%- __('site_visitors') %>:<span id="busuanzi_value_site_uv"></span></s>
|
||||
<span><i class="ri-user-3-fill"></i><%- __('site_visitors') %>:<span id="busuanzi_value_site_uv"></span></span>
|
||||
<span class="division">|</span>
|
||||
<span><i class="ri-eye-fill"></i><%- __('page_views') %>:<span id="busuanzi_value_page_pv"></span></span>
|
||||
</span>
|
@ -1,7 +1,7 @@
|
||||
<% if (theme.gitalk.enable && post.comments) { %>
|
||||
<div class="gitalk" id="gitalk-container"></div>
|
||||
<%- css('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.css') %>
|
||||
<%- js('https://cdn.jsdelivr.net/npm/gitalk@1.6.2/dist/gitalk.min.js') %>
|
||||
<%- css('https://cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.css') %>
|
||||
<%- js('https://cdn.jsdelivr.net/npm/gitalk@1.7.2/dist/gitalk.min.js') %>
|
||||
<%- js('https://cdn.jsdelivr.net/npm/blueimp-md5@2.10.0/js/md5.min.js') %>
|
||||
<script type="text/javascript">
|
||||
var gitalk = new Gitalk({
|
||||
|
Loading…
Reference in New Issue
Block a user