hexo-theme-ayer/layout/_partial/post/twikoo.ejs

9 lines
302 B
JavaScript
Raw Normal View History

2020-12-24 05:36:44 +00:00
<% if (!index && theme.twikoo && theme.twikoo.enable){ %>
<script src="https://cdn.jsdelivr.net/npm/twikoo/dist/twikoo.all.min.js"></script>
<div id="twikoo" class="twikoo"></div>
<script>
twikoo.init({
envId: "<%- theme.twikoo.envId %>"
})
</script>
<% } %>