i18n
xaoxuu 6 years ago
parent 8b96acef35
commit b16e592718
  1. 15
      layout/_partial/article.ejs
  2. 16
      layout/_partial/scripts.ejs

@ -73,21 +73,22 @@
<% } %> <% } %>
<% if (post.comments) { %> <% if (post.comments) { %>
<% if (config.livere_shortname || config.valine){ %> <% if (config.disqus_shortname || config.livere_shortname || config.valine){ %>
<h4><i class="fa fa-comments" aria-hidden="true"></i>&nbsp;&nbsp;评论</h4> <h4><i class="fa fa-comments" aria-hidden="true"></i>&nbsp;&nbsp;评论</h4>
<% } %> <% } %>
<% if (config.livere_shortname){ %>
<% if (config.disqus_shortname) { %>
<section id="comments"> <section id="comments">
<div id="lv-container" data-id="city" data-uid="MTAyMC8yOTU4Ny82MTU1"> <div id="disqus_thread">
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript> 无法加载评论系统,请确保您的网络能够正常访问 <a href="https://disqus.com">Disqus</a> 。
</div> </div>
</section> </section>
<% } %> <% } %>
<% if (config.disqus_shortname) { %> <% if (config.livere_shortname){ %>
<section id="comments"> <section id="comments">
<div id="disqus_thread"> <div id="lv-container" data-id="city" data-uid="MTAyMC8yOTU4Ny82MTU1">
无法加载评论系统,请确保您的网络能够正常访问 <a href="https://disqus.com">Disqus</a> 。 <noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
</div> </div>
</section> </section>
<% } %> <% } %>

@ -42,14 +42,14 @@ if(!ROOT.endsWith('/'))ROOT += '/';
<% } %> <% } %>
<% if (config.livere_shortname){ %> <% if (config.livere_shortname){ %>
<script type="text/javascript"> <script type="text/javascript">
(function(d, s) { (function(d, s) {
var j, e = d.getElementsByTagName(s)[0]; var j, e = d.getElementsByTagName(s)[0];
if (typeof LivereTower === 'function') { return; } if (typeof LivereTower === 'function') { return; }
j = d.createElement(s); j = d.createElement(s);
j.src = 'https://cdn-city.livere.com/js/embed.dist.js'; j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
j.async = true; j.async = true;
e.parentNode.insertBefore(j, e); e.parentNode.insertBefore(j, e);
})(document, 'script'); })(document, 'script');
</script> </script>
<% } %> <% } %>
<% if (config.valine){ %> <% if (config.valine){ %>

Loading…
Cancel
Save