mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
18 lines
512 B
Plaintext
18 lines
512 B
Plaintext
{%- if page.comments %}
|
|
<script>
|
|
NexT.utils.loadComments('#lv-container', () => {
|
|
window.livereOptions = {
|
|
refer: location.pathname.replace(CONFIG.root, '').replace('index.html', '')
|
|
};
|
|
(function(d, s) {
|
|
var j, e = d.getElementsByTagName(s)[0];
|
|
if (typeof LivereTower === 'function') { return; }
|
|
j = d.createElement(s);
|
|
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
|
|
j.async = true;
|
|
e.parentNode.insertBefore(j, e);
|
|
})(document, 'script');
|
|
});
|
|
</script>
|
|
{%- endif %}
|