2025-2-26-fixed
This commit is contained in:
17
themes/next/layout/_third-party/comments/livere.swig
vendored
Normal file
17
themes/next/layout/_third-party/comments/livere.swig
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{%- if page.comments %}
|
||||
<script>
|
||||
NexT.utils.loadComments(document.querySelector('#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 %}
|
||||
Reference in New Issue
Block a user