Commit b145ac62 authored by Van's avatar Van

#18

parent 2498205e
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
along with this program. If not, see <https://www.gnu.org/licenses/>. along with this program. If not, see <https://www.gnu.org/licenses/>.
--> -->
<script src="https://cdn.jsdelivr.net/npm/uvstat@v1.0.5/dist/index.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/uvstat@v1.0.6/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vcmt@v1.0.4/dist/index.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vcmt@v1.0.4/dist/index.min.js"></script>
<script> <script>
var Label = { var Label = {
......
This diff is collapsed.
var Util={uvstat:void 0,initViewCnt:function(){Util.uvstat=new Uvstat,Util.uvstat.addStat(),Util.uvstat.renderStat()},isArticlePage:function(e){var t=!0;return e.indexOf(Label.servePath+"/tags/")>-1&&(t=!1),e.indexOf(Label.servePath+"/tags.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/category/")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives/")>-1&&(t=!1),e.indexOf(Label.servePath+"/links.html")>-1&&(t=!1),e===Label.servePath&&(t=!1),/^[0-9]*$/.test(e.replace(Label.servePath+"/",""))&&(t=!1),t},initPjax:function(e){1===$("#pjax").length&&($.pjax({selector:"a",container:"#pjax",show:"",cache:!1,storage:!0,titleSuffix:"",filter:function(e,t){return!e||("_blank"===t.getAttribute("target")||(e===Label.servePath+"/rss.xml"||e.indexOf(Label.servePath+"/admin-index.do")>-1||(0===e.indexOf("#")||!(t.href.indexOf(Label.servePath)>-1))))},callback:function(){Util.parseMarkdown(),Util.parseLanguage(),Util.uvstat.addStat(),Util.uvstat.renderStat(),e&&e()}}),NProgress.configure({showSpinner:!1}),$("#pjax").bind("pjax.start",(function(){NProgress.start()})),$("#pjax").bind("pjax.end",(function(){window.scroll(window.scrollX,0),NProgress.done()})))},previewImg:function(){$("body").on("click",".vditor-reset img",(function(){$(this).hasClass("prevent")||window.open(this.src)}))},addStyle:function(e,t){if(!document.getElementById(t)){var i=document.createElement("link");i.id=t,i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(i)}},addScript:function(e,t){if(!document.getElementById(t)){var i=new XMLHttpRequest;i.open("GET",e,!1),i.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),i.send("");var a=document.createElement("script");a.id=t,a.type="text/javascript",a.text=i.responseText,document.getElementsByTagName("head")[0].appendChild(a)}},parseLanguage:function(){Vditor.highlightRender({style:Label.hljsStyle,enable:!Label.luteAvailable},document)},parseMarkdown:function(){"undefined"==typeof Vditor&&Util.addScript("https://cdn.jsdelivr.net/npm/vditor@2.1.1/dist/method.min.js","vditorPreviewScript"),Vditor.codeRender(document.body,Label.langLabel),Label.luteAvailable?Vditor.mathRenderByLute(document.body):Vditor.mathRender(document.body),Vditor.abcRender(),Vditor.chartRender(),Vditor.mediaRender(document.body),Vditor.mermaidRender(document.body),document.querySelectorAll(".vditor-reset").forEach(e=>{Vditor.speechRender(e,Label.langLabel)})},killIE:function(e){var t=navigator.userAgent.split("MSIE")[1];t&&(e||(e=7),parseFloat(t.split(";"))<=e&&function(){try{var e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+($(window).width()-781)/2+"px;z-index:120;top: "+($(window).height()-680)/2+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";$("body").append(e)}catch(t){e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+10+"px;z-index:120;top: "+0+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";document.body.innerHTML=document.body.innerHTML+e}}())},setTopBar:function(){var e=$("#top");if(1===e.length){var t=$("#showTop");t.click((function(){e.slideDown(),t.hide()})),$("#hideTop").click((function(){e.slideUp(),t.show()}))}},goTop:function(){$("html, body").animate({scrollTop:0},800)},goBottom:function(e){e||(e=0),$("html, body").animate({scrollTop:$(document).height()-$(window).height()-e},800)},init:function(){Util.killIE(),Util.parseMarkdown(),Util.parseLanguage(),Util.initSW(),Util.previewImg(),Util.initDebugInfo(),Util.initViewCnt()},initDebugInfo:function(){console.log("%cSolo%c\n \ud83c\udfb8\u4e00\u6b3e\u5c0f\u800c\u7f8e\u7684\u535a\u5ba2\u7cfb\u7edf\uff0c\u4e13\u4e3a\u7a0b\u5e8f\u5458\u8bbe\u8ba1\u3002\n\n solo.b3log.org v"+Label.version+"\n Copyright \xa9 2010-present","font-size:96px;color:#3b3e43","font-size:12px;color:#4285f4;")},initSW:function(){navigator.serviceWorker&&navigator.serviceWorker.register("/sw.js",{scope:"/"})},buildTags:function(e){e=e||"tags";for(var t=["tags1","tags2","tags3","tags4","tags5"],i=$("#"+e+" b").get(),a=parseInt($("#"+e+" b").last().text()),n=Math.ceil(a/t.length),r=0;r<i.length;r++)for(var o=parseInt(i[r].innerHTML),l=0;l<t.length;l++)if(o>l*n&&o<=(l+1)*n){i[r].parentNode.className=t[l];break}$("#"+e).html($("#"+e+" li").get().sort((function(e,t){var i=$(e).find("span").text().toLowerCase(),a=$(t).find("span").text().toLowerCase();return i.localeCompare(a)})))}}; var Util={uvstat:void 0,initViewCnt:function(){Util.uvstat=new Uvstat,Util.uvstat.addStat(),Util.uvstat.renderStat(),Util.uvstat.renderCmtStat()},isArticlePage:function(e){var t=!0;return e.indexOf(Label.servePath+"/tags/")>-1&&(t=!1),e.indexOf(Label.servePath+"/tags.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/category/")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives.html")>-1&&(t=!1),e.indexOf(Label.servePath+"/archives/")>-1&&(t=!1),e.indexOf(Label.servePath+"/links.html")>-1&&(t=!1),e===Label.servePath&&(t=!1),/^[0-9]*$/.test(e.replace(Label.servePath+"/",""))&&(t=!1),t},initPjax:function(e){1===$("#pjax").length&&($.pjax({selector:"a",container:"#pjax",show:"",cache:!1,storage:!0,titleSuffix:"",filter:function(e,t){return!e||("_blank"===t.getAttribute("target")||(e===Label.servePath+"/rss.xml"||e.indexOf(Label.servePath+"/admin-index.do")>-1||(0===e.indexOf("#")||!(t.href.indexOf(Label.servePath)>-1))))},callback:function(){Util.parseMarkdown(),Util.parseLanguage(),Util.uvstat.addStat(),Util.uvstat.renderStat(),Util.uvstat.renderCmtStat(),e&&e()}}),NProgress.configure({showSpinner:!1}),$("#pjax").bind("pjax.start",(function(){NProgress.start()})),$("#pjax").bind("pjax.end",(function(){window.scroll(window.scrollX,0),NProgress.done()})))},previewImg:function(){$("body").on("click",".vditor-reset img",(function(){$(this).hasClass("prevent")||window.open(this.src)}))},addStyle:function(e,t){if(!document.getElementById(t)){var i=document.createElement("link");i.id=t,i.setAttribute("rel","stylesheet"),i.setAttribute("type","text/css"),i.setAttribute("href",e),document.getElementsByTagName("head")[0].appendChild(i)}},addScript:function(e,t){if(!document.getElementById(t)){var i=new XMLHttpRequest;i.open("GET",e,!1),i.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),i.send("");var a=document.createElement("script");a.id=t,a.type="text/javascript",a.text=i.responseText,document.getElementsByTagName("head")[0].appendChild(a)}},parseLanguage:function(){Vditor.highlightRender({style:Label.hljsStyle,enable:!Label.luteAvailable},document)},parseMarkdown:function(){"undefined"==typeof Vditor&&Util.addScript("https://cdn.jsdelivr.net/npm/vditor@2.1.1/dist/method.min.js","vditorPreviewScript"),Vditor.codeRender(document.body,Label.langLabel),Label.luteAvailable?Vditor.mathRenderByLute(document.body):Vditor.mathRender(document.body),Vditor.abcRender(),Vditor.chartRender(),Vditor.mediaRender(document.body),Vditor.mermaidRender(document.body),document.querySelectorAll(".vditor-reset").forEach(e=>{Vditor.speechRender(e,Label.langLabel)})},killIE:function(e){var t=navigator.userAgent.split("MSIE")[1];t&&(e||(e=7),parseFloat(t.split(";"))<=e&&function(){try{var e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+($(window).width()-781)/2+"px;z-index:120;top: "+($(window).height()-680)/2+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";$("body").append(e)}catch(t){e='<div class="killIEIframe" style=\'display: block; height: 100%; width: 100%; position: fixed; background-color: rgb(0, 0, 0); opacity: 0.6;filter: alpha(opacity=60); top: 0px;z-index:110\'></div><iframe class="killIEIframe" style=\'left:'+10+"px;z-index:120;top: "+0+"px; position: fixed; border: 0px none; width: 781px; height: 680px;' src='"+Label.servePath+"/kill-browser'></iframe>";document.body.innerHTML=document.body.innerHTML+e}}())},setTopBar:function(){var e=$("#top");if(1===e.length){var t=$("#showTop");t.click((function(){e.slideDown(),t.hide()})),$("#hideTop").click((function(){e.slideUp(),t.show()}))}},goTop:function(){$("html, body").animate({scrollTop:0},800)},goBottom:function(e){e||(e=0),$("html, body").animate({scrollTop:$(document).height()-$(window).height()-e},800)},init:function(){Util.killIE(),Util.parseMarkdown(),Util.parseLanguage(),Util.initSW(),Util.previewImg(),Util.initDebugInfo(),Util.initViewCnt()},initDebugInfo:function(){console.log("%cSolo%c\n \ud83c\udfb8\u4e00\u6b3e\u5c0f\u800c\u7f8e\u7684\u535a\u5ba2\u7cfb\u7edf\uff0c\u4e13\u4e3a\u7a0b\u5e8f\u5458\u8bbe\u8ba1\u3002\n\n solo.b3log.org v"+Label.version+"\n Copyright \xa9 2010-present","font-size:96px;color:#3b3e43","font-size:12px;color:#4285f4;")},initSW:function(){navigator.serviceWorker&&navigator.serviceWorker.register("/sw.js",{scope:"/"})},buildTags:function(e){e=e||"tags";for(var t=["tags1","tags2","tags3","tags4","tags5"],i=$("#"+e+" b").get(),a=parseInt($("#"+e+" b").last().text()),n=Math.ceil(a/t.length),r=0;r<i.length;r++)for(var o=parseInt(i[r].innerHTML),l=0;l<t.length;l++)if(o>l*n&&o<=(l+1)*n){i[r].parentNode.className=t[l];break}$("#"+e).html($("#"+e+" li").get().sort((function(e,t){var i=$(e).find("span").text().toLowerCase(),a=$(t).find("span").text().toLowerCase();return i.localeCompare(a)})))}};
\ No newline at end of file \ No newline at end of file
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<span class="vditor-tooltipped vditor-tooltipped__n" aria-label="${commentCountLabel}"> <span class="vditor-tooltipped vditor-tooltipped__n" aria-label="${commentCountLabel}">
<i class="icon-comments"></i> <i class="icon-comments"></i>
<a href="${servePath}${article.articlePermalink}#comments"> <a href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${commentLabel}</a> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}</a>
</span> </span>
</#if> </#if>
&nbsp; | &nbsp; &nbsp; | &nbsp;
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<span class="vditor-tooltipped vditor-tooltipped__n" aria-label="${commentCountLabel}"> <span class="vditor-tooltipped vditor-tooltipped__n" aria-label="${commentCountLabel}">
<i class="icon-comments"></i> <i class="icon-comments"></i>
<a href="${servePath}${article.articlePermalink}#comments"> <a href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${commentLabel}</a> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}</a>
</span> </span>
</#if> </#if>
&nbsp; | &nbsp; &nbsp; | &nbsp;
......
...@@ -88,9 +88,7 @@ ...@@ -88,9 +88,7 @@
<ul> <ul>
<#list mostCommentArticles as article> <#list mostCommentArticles as article>
<li> <li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}" <a rel="nofollow" href="${servePath}${article.articlePermalink}">
class="vditor-tooltipped vditor-tooltipped__e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle} ${article.articleTitle}
</a> </a>
</li> </li>
...@@ -107,9 +105,7 @@ ...@@ -107,9 +105,7 @@
<ul> <ul>
<#list mostViewCountArticles as article> <#list mostViewCountArticles as article>
<li> <li>
<a rel="nofollow" aria-label="${article.articleCommentCount} ${commentLabel}" <a rel="nofollow" href="${servePath}${article.articlePermalink}">
class="vditor-tooltipped vditor-tooltipped__e"
href="${servePath}${article.articlePermalink}">
${article.articleTitle} ${article.articleTitle}
</a> </a>
</li> </li>
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<#if commentable> <#if commentable>
| |
<a rel="nofollow" class="underline" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" class="underline" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${commentLabel} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}
</a> </a>
</#if> </#if>
</div> </div>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<#if commentable> <#if commentable>
| |
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${commentLabel} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}
</a> </a>
</#if> </#if>
</div> </div>
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<li> <li>
<a rel="nofollow" title="${article.articleTitle}" <a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}"> href="${servePath}${article.articlePermalink}">
<sup>[${article.articleCommentCount}]</sup> <sup>[<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>]</sup>
${article.articleTitle} ${article.articleTitle}
</a> </a>
</li> </li>
......
...@@ -54,10 +54,10 @@ ...@@ -54,10 +54,10 @@
${articleTag} ${articleTag}
</a> &nbsp; </a> &nbsp;
</#list> </#list>
<#if article.articleCommentCount != 0 && commentable> <#if commentable>
&nbsp;·&nbsp; &nbsp;·&nbsp;
<a class="item__tag" href="${servePath}${article.articlePermalink}#comments"> <a class="item__tag" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${commentLabel} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}
</a> </a>
</#if> </#if>
&nbsp;·&nbsp; &nbsp;·&nbsp;
......
...@@ -68,9 +68,9 @@ ...@@ -68,9 +68,9 @@
class="vditor-tooltipped vditor-tooltipped__n item__avatar"> class="vditor-tooltipped vditor-tooltipped__n item__avatar">
<img src="${article.authorThumbnailURL}" /> <img src="${article.authorThumbnailURL}" />
</a> </a>
<#if article.articleCommentCount != 0 && commentable> <#if commentable>
<a class="item__meta" href="${servePath}${article.articlePermalink}#comments"> <a class="item__meta" href="${servePath}${article.articlePermalink}#comments">
<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel} <span data-uvstatcmt="${article.oId}"><span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span></span> ${commentLabel}
</a> </a>
<#else> <#else>
<a class="item__meta" href="${servePath}${article.articlePermalink}"> <a class="item__meta" href="${servePath}${article.articlePermalink}">
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<#if commentable> <#if commentable>
<li> <li>
<a rel="nofollow" title="${commentLabel}" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" title="${commentLabel}" href="${servePath}${article.articlePermalink}#comments">
${commentLabel} (${article.articleCommentCount}) ${commentLabel} (<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>)
</a> </a>
</li> </li>
</#if> </#if>
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<#if commentable> <#if commentable>
<li> <li>
<a rel="nofollow" title="${commentLabel}" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" title="${commentLabel}" href="${servePath}${article.articlePermalink}#comments">
${commentLabel} (${article.articleCommentCount}) ${commentLabel} (<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>)
</a> </a>
</li> </li>
</#if> </#if>
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<#list mostCommentArticles as article> <#list mostCommentArticles as article>
<li> <li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}"> <a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<sup>[${article.articleCommentCount}]</sup>${article.articleTitle} <sup>[<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>]</sup>${article.articleTitle}
</a> </a>
</li> </li>
</#list> </#list>
......
...@@ -698,7 +698,7 @@ pre code, pre tt { ...@@ -698,7 +698,7 @@ pre code, pre tt {
} }
.nav li a { .nav li a {
display: block; display: flex;
padding: 0.6rem 4%; padding: 0.6rem 4%;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
<a href="${servePath}${article.articlePermalink}" title="${article.articleTitle}" rel="nofollow"> <a href="${servePath}${article.articlePermalink}" title="${article.articleTitle}" rel="nofollow">
${article.articleTitle} ${article.articleTitle}
</a> </a>
<span data-ico="&#xe14e;"> <span data-ico="&#xe14e;" data-uvstatcmt="${article.oId}">
${article.articleCommentCount} ${article.articleCommentCount}
</span> </span>
</li> </li>
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</span> </span>
<div class="fn__right"> <div class="fn__right">
<#if commentable> <#if commentable>
<a class="ft__red" href="${servePath}${article.articlePermalink}#comments"><#if article.articleCommentCount gt 0>${article.articleCommentCount} </#if>${commentLabel}</a> <a class="ft__red" href="${servePath}${article.articlePermalink}#comments"><span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}</a>
</#if> </#if>
<a class="ft__red" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}</a> <a class="ft__red" href="${servePath}${article.articlePermalink}"><span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}</a>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
</span> </span>
<div class="fn__right"> <div class="fn__right">
<#if commentable> <#if commentable>
<a class="ft__red" href="${servePath}${article.articlePermalink}#comments"><#if article.articleCommentCount gt 0>${article.articleCommentCount} </#if>${commentLabel}</a> <a class="ft__red" href="${servePath}${article.articlePermalink}#comments"><span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}</a>
</#if> </#if>
<span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel} <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> ${viewLabel}
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</time> &nbsp;•&nbsp; </time> &nbsp;•&nbsp;
<#if commentable> <#if commentable>
<a href="${servePath}${article.articlePermalink}#comments" class="ft-gray"> <a href="${servePath}${article.articlePermalink}#comments" class="ft-gray">
${article.articleCommentCount} ${commentLabel} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}
</a> &nbsp;•&nbsp; </a> &nbsp;•&nbsp;
</#if> </#if>
<a href="${servePath}${article.articlePermalink}" class="ft-gray"> <a href="${servePath}${article.articlePermalink}" class="ft-gray">
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<svg> <svg>
<use xlink:href="#icon-comment"></use> <use xlink:href="#icon-comment"></use>
</svg> </svg>
${article.articleCommentCount} &nbsp; &nbsp; <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> &nbsp; &nbsp;
</span> </span>
<span id="articleShare"> <span id="articleShare">
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<svg> <svg>
<use xlink:href="#icon-comment"></use> <use xlink:href="#icon-comment"></use>
</svg> </svg>
${article.articleCommentCount} &nbsp; &nbsp; <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> &nbsp; &nbsp;
</span> </span>
<span id="articleBottomShare"> <span id="articleBottomShare">
<span class="post__share-icon" data-type="wechat"> <span class="post__share-icon" data-type="wechat">
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
<span class="vditor-tooltipped vditor-tooltipped__e post__share-icon ft-green" <span class="vditor-tooltipped vditor-tooltipped__e post__share-icon ft-green"
onclick="$('#comment').focus()" onclick="$('#comment').focus()"
aria-label="${commentLabel}"> aria-label="${commentLabel}">
<span class="ft-gray">${article.articleCommentCount}</span> <span class="ft-gray" data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
<svg> <svg>
<use xlink:href="#icon-comment"></use> <use xlink:href="#icon-comment"></use>
</svg> </svg>
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<div class="right article-element"> <div class="right article-element">
<#if commentable> <#if commentable>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}&nbsp;&nbsp;${commentLabel} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>&nbsp;&nbsp;${commentLabel}
</a>&nbsp;&nbsp; </a>&nbsp;&nbsp;
</#if> </#if>
<a rel="nofollow" href="${servePath}${article.articlePermalink}"> <a rel="nofollow" href="${servePath}${article.articlePermalink}">
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<div class="right article-element"> <div class="right article-element">
<#if commentable> <#if commentable>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount}&nbsp;&nbsp;${commentLabel} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>&nbsp;&nbsp;${commentLabel}
</a>&nbsp;&nbsp; </a>&nbsp;&nbsp;
</#if> </#if>
<a rel="nofollow" href="${servePath}${article.articlePermalink}"> <a rel="nofollow" href="${servePath}${article.articlePermalink}">
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<ul class="side-li"> <ul class="side-li">
<#list mostCommentArticles as article> <#list mostCommentArticles as article>
<li> <li>
<sup>[${article.articleCommentCount}]</sup> <sup>[<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>]</sup>
<a title="${article.articleTitle}" href="${servePath}${article.articlePermalink}"> <a title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleTitle} ${article.articleTitle}
</a> </a>
......
...@@ -64,9 +64,7 @@ ...@@ -64,9 +64,7 @@
</#if> </#if>
with <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> views with <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span> views
<#if commentable> <#if commentable>
<#if article.articleCommentCount != 0> and <a href="#comments"><span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> comments</a>
and <a href="#comments">${article.articleCommentCount} comments</a>
</#if>
</#if> </#if>
</div> </div>
<div class="item__tags"> <div class="item__tags">
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<#if commentable> <#if commentable>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<span class="left articles-commentIcon" title="${commentLabel}"></span> <span class="left articles-commentIcon" title="${commentLabel}"></span>
<span class="count">${article.articleCommentCount}</span> <span class="count" data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a> </a>
</#if> </#if>
<div class="right more"> <div class="right more">
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
</div> </div>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<span class="left articles-commentIcon" title="${commentLabel}"></span> <span class="left articles-commentIcon" title="${commentLabel}"></span>
<span class="count">${article.articleCommentCount}</span> <span class="count" data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a> </a>
<div class="right"> <div class="right">
<a rel="nofollow" href="#comments" class="right"> <a rel="nofollow" href="#comments" class="right">
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<li> <li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}"> <a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
${article.articleTitle} ${article.articleTitle}
</a>(${article.articleCommentCount}) </a>(<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>)
</li> </li>
</#list> </#list>
</ul> </ul>
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
<div class="right"> <div class="right">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<span class="left articles-commentIcon" title="${commentLabel}"></span> <span class="left articles-commentIcon" title="${commentLabel}"></span>
${article.articleCommentCount} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a> </a>
</div> </div>
</#if> </#if>
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<div class="right"> <div class="right">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
<span class="left articles-commentIcon" title="${commentLabel}"></span> <span class="left articles-commentIcon" title="${commentLabel}"></span>
${article.articleCommentCount} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a> </a>
</div> </div>
</#if> </#if>
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<li> <li>
<a rel="nofollow" title="${article.articleTitle}" <a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}"> href="${servePath}${article.articlePermalink}">
<sup>[${article.articleCommentCount}]</sup> <sup>[<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>]</sup>
${article.articleTitle} ${article.articleTitle}
</a> </a>
</li> </li>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</div> </div>
<div class="fn-right"> <div class="fn-right">
<#if commentable> <#if commentable>
<a rel="nofollow" data-ico="&#xe14e;" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" data-ico="&#xe14e;" data-uvstatcmt="${article.oId}" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${article.articleCommentCount}
</a> </a>
</#if> </#if>
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<div class="article-info"> <div class="article-info">
<#if commentable> <#if commentable>
<a rel="nofollow" data-ico="&#xe14e;" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" data-ico="&#xe14e;" href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a> </a>
</#if> </#if>
<a rel="nofollow" data-ico="&#xe185;" href="${servePath}${article.articlePermalink}"> <a rel="nofollow" data-ico="&#xe185;" href="${servePath}${article.articlePermalink}">
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<a href="${servePath}${article.articlePermalink}" title="${article.articleTitle}" rel="nofollow"> <a href="${servePath}${article.articlePermalink}" title="${article.articleTitle}" rel="nofollow">
${article.articleTitle} ${article.articleTitle}
</a> </a>
<span data-ico="&#xe14e;"> <span data-ico="&#xe14e;" data-uvstatcmt="${article.oId}">
${article.articleCommentCount} ${article.articleCommentCount}
</span> </span>
</li> </li>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<span> <span>
&nbsp; | &nbsp; &nbsp; | &nbsp;
<a href="${servePath}${article.articlePermalink}#comments"> <a href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${cmtLabel}</a> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${cmtLabel}</a>
</span> </span>
</#if> </#if>
&nbsp; | &nbsp;${viewsLabel} <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>°C &nbsp; | &nbsp;${viewsLabel} <span data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</span>°C
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<span class="post-comments-count"> <span class="post-comments-count">
&nbsp; | &nbsp; &nbsp; | &nbsp;
<a href="${servePath}${article.articlePermalink}#comments"> <a href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${cmtLabel}</a> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${cmtLabel}</a>
</span> </span>
</#if> </#if>
&nbsp; | &nbsp; ${viewsLabel} &nbsp; | &nbsp; ${viewsLabel}
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</span> </span>
<#if commentable> <#if commentable>
<a class="tag" href="${servePath}${article.articlePermalink}#comments"> <a class="tag" href="${servePath}${article.articlePermalink}#comments">
<i class="icon__comments"></i> ${article.articleCommentCount} ${commentLabel} <i class="icon__comments"></i> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}
</a> </a>
</#if> </#if>
<span class="tag"> <span class="tag">
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</span> </span>
<#if commentable> <#if commentable>
<a class="tag" href="${servePath}${article.articlePermalink}#comments"> <a class="tag" href="${servePath}${article.articlePermalink}#comments">
<i class="icon__comments"></i> ${article.articleCommentCount} ${commentLabel} <i class="icon__comments"></i> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}
</a> </a>
</#if> </#if>
<span class="tag"> <span class="tag">
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</a><#if commentable> | ${commentCount1Label} </a><#if commentable> | ${commentCount1Label}
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<span class="left articles-commentIcon" title="${commentLabel}"></span> <span class="left articles-commentIcon" title="${commentLabel}"></span>
${article.articleCommentCount} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a> </a>
</#if> </#if>
</p> </p>
......
...@@ -64,7 +64,7 @@ ${topBarReplacement} ...@@ -64,7 +64,7 @@ ${topBarReplacement}
<#if commentable> | ${commentCount1Label} <#if commentable> | ${commentCount1Label}
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<span class="left articles-commentIcon" title="${commentLabel}"></span> <span class="left articles-commentIcon" title="${commentLabel}"></span>
${article.articleCommentCount} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
</a> </a>
</#if> </#if>
</p> </p>
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
<li> <li>
<a rel="nofollow" title="${article.articleTitle}" <a rel="nofollow" title="${article.articleTitle}"
href="${servePath}${article.articlePermalink}"> href="${servePath}${article.articlePermalink}">
<sup>[${article.articleCommentCount}]</sup> <sup>[<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>]</sup>
${article.articleTitle} ${article.articleTitle}
</a> </a>
</li> </li>
......
...@@ -58,11 +58,7 @@ ...@@ -58,11 +58,7 @@
</span> </span>
<span class="ico-comment ico" title="${commentLabel}"> <span class="ico-comment ico" title="${commentLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<#if article.articleCommentCount == 0> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${noCommentLabel}
<#else>
${article.articleCommentCount}
</#if>
</a> </a>
</span> </span>
<span class="ico-view ico" title="${viewLabel}"> <span class="ico-view ico" title="${viewLabel}">
......
...@@ -80,11 +80,7 @@ ${topBarReplacement} ...@@ -80,11 +80,7 @@ ${topBarReplacement}
<#if commentable> <#if commentable>
<span class="ico-comment ico" title="${commentLabel}"> <span class="ico-comment ico" title="${commentLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
<#if article.articleCommentCount == 0> <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
${noCommentLabel}
<#else>
${article.articleCommentCount}
</#if>
</a> </a>
</span> </span>
</#if> </#if>
......
...@@ -82,12 +82,8 @@ ...@@ -82,12 +82,8 @@
${article.articleTitle} ${article.articleTitle}
</a> </a>
<span class="ico ico-comment right" title="${commentLabel}"> <span class="ico ico-comment right" title="${commentLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" data-uvstatcmt="${article.oId}">
<#if article.articleCommentCount == 0>
${noCommentLabel}
<#else>
${article.articleCommentCount} ${article.articleCommentCount}
</#if>
</a> </a>
</span> </span>
</li> </li>
......
...@@ -93,12 +93,8 @@ ...@@ -93,12 +93,8 @@
</span> </span>
<#if commentable> <#if commentable>
<span class="ico-comment ico" title="${commentLabel}"> <span class="ico-comment ico" title="${commentLabel}">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" data-uvstatcmt="${article.oId} href="${servePath}${article.articlePermalink}#comments">
<#if article.articleCommentCount == 0>
${noCommentLabel}
<#else>
${article.articleCommentCount} ${article.articleCommentCount}
</#if>
</a> </a>
</span> </span>
</#if> </#if>
......
...@@ -307,7 +307,7 @@ var timeline = { ...@@ -307,7 +307,7 @@ var timeline = {
+ '<a rel="author" href="' + Label.servePath + '/authors/' + article.authorId + '">' + '<a rel="author" href="' + Label.servePath + '/authors/' + article.authorId + '">'
+ article.authorName + '</a></span>&nbsp;<span class="ico-comment ico" title="' + article.authorName + '</a></span>&nbsp;<span class="ico-comment ico" title="'
+ Label.commentLabel + '"><a rel="nofollow" href="' + Label.servePath + article.articlePermalink + Label.commentLabel + '"><a rel="nofollow" href="' + Label.servePath + article.articlePermalink
+ '#comments">' + (article.articleCommentCount === 0 ? Label.noCommentLabel : article.articleCommentCount) + '#comments" data-uvstatcmt="' + article.oId + '">' + article.articleCommentCount
+ '</a></span>&nbsp;<span class="ico-view ico" title="' + Label.viewLabel + '">' + '</a></span>&nbsp;<span class="ico-view ico" title="' + Label.viewLabel + '">'
+ '<a rel="nofollow" href="${servePath}${article.articlePermalink}">' + '<a rel="nofollow" href="${servePath}${article.articlePermalink}">'
+ '<span data-uvstaturl="' + Label.servePath + article.articlePermalink + '">' + article.articleViewCount + '</span>' + '<span data-uvstaturl="' + Label.servePath + article.articlePermalink + '">' + article.articleViewCount + '</span>'
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<#if commentable> <#if commentable>
<div class="article-comment"> <div class="article-comment">
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments">
${commentLabel}(${article.articleCommentCount}) ${commentLabel}(<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>)
</a> </a>
</div> </div>
</#if> </#if>
......
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<div class="right"> <div class="right">
<#if commentable> <#if commentable>
<a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left"> <a rel="nofollow" href="${servePath}${article.articlePermalink}#comments" class="left">
&nbsp;${article.articleCommentCount} ${commentLabel}&nbsp;&nbsp; &nbsp;<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span> ${commentLabel}&nbsp;&nbsp;
</a> </a>
</#if> </#if>
<a rel="nofollow" href="${servePath}${article.articlePermalink}" class="left"> <a rel="nofollow" href="${servePath}${article.articlePermalink}" class="left">
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<#list mostCommentArticles as article> <#list mostCommentArticles as article>
<li> <li>
<a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}"> <a rel="nofollow" title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">
<sup>[${article.articleCommentCount}]</sup>${article.articleTitle} <sup>[<span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>]</sup>${article.articleTitle}
</a> </a>
</li> </li>
</#list> </#list>
......
...@@ -59,15 +59,13 @@ ...@@ -59,15 +59,13 @@
</div> </div>
<span>&nbsp;&nbsp;&nbsp;</span> <span>&nbsp;&nbsp;&nbsp;</span>
<#if commentable> <#if commentable>
<#if article.articleCommentCount != 0>
<a href="${servePath}${article.articlePermalink}#comments" <a href="${servePath}${article.articlePermalink}#comments"
class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center" class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
aria-label="${commentLabel}"> aria-label="${commentLabel}">
${article.articleCommentCount} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
<span class="icon-chat"></span> <span class="icon-chat"></span>
</a> </a>
</#if> </#if>
</#if>
<a class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center" <a class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
href="${servePath}${article.articlePermalink}" href="${servePath}${article.articlePermalink}"
aria-label="${viewLabel}"> aria-label="${viewLabel}">
......
...@@ -62,15 +62,13 @@ ...@@ -62,15 +62,13 @@
</div> </div>
<span>&nbsp;&nbsp;&nbsp;</span> <span>&nbsp;&nbsp;&nbsp;</span>
<#if commentable> <#if commentable>
<#if article.articleCommentCount != 0>
<a href="${servePath}${article.articlePermalink}#comments" <a href="${servePath}${article.articlePermalink}#comments"
class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center" class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
aria-label="${commentLabel}"> aria-label="${commentLabel}">
${article.articleCommentCount} <span data-uvstatcmt="${article.oId}">${article.articleCommentCount}</span>
<span class="icon-chat"></span> <span class="icon-chat"></span>
</a> </a>
</#if> </#if>
</#if>
<a class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center" <a class="vditor-tooltipped__n vditor-tooltipped link fn__flex-center"
href="${servePath}${article.articlePermalink}" href="${servePath}${article.articlePermalink}"
aria-label="${viewLabel}"> aria-label="${viewLabel}">
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<a href="${servePath}${article.articlePermalink}" title="${article.articleTitle}" rel="nofollow"> <a href="${servePath}${article.articlePermalink}" title="${article.articleTitle}" rel="nofollow">
${article.articleTitle} ${article.articleTitle}
</a> </a>
<span data-ico="&#xe14e;"> <span data-ico="&#xe14e;" data-uvstatcmt="${article.oId}">
${article.articleCommentCount} ${article.articleCommentCount}
</span> </span>
</li> </li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment