hexo-theme-ayer/layout/_partial/post/twikoo.ejs
2022-02-24 11:21:40 +08:00

9 lines
302 B
JavaScript

<% if (!index && theme.twikoo && theme.twikoo.enable){ %>
<script src="https://cdn.staticfile.org/twikoo/1.4.18/twikoo.all.min.js"></script>
<div id="twikoo" class="twikoo"></div>
<script>
twikoo.init({
envId: "<%- theme.twikoo.envId %>"
})
</script>
<% } %>