Skip to content

Commit 8d1bd31

Browse files
committed
Fixed bug with Disqus comments count + source formatting
1 parent 58fe849 commit 8d1bd31

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

index.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,9 @@ <h1 class="entry-title"><a href="{Permalink}" title="{Title}" rel="bookmark">{Ti
383383
</li>
384384
{/block:NoteCount}
385385

386-
{block:IndexPage}
387386
<li class="comments">
388387
<a href="{Permalink}#disqus_thread" title="{lang:View comments for this post}" class="dsq-comment-count">{lang:View comments}</a>
389388
</li>
390-
{/block:IndexPage}
391389

392390
{block:HasTags}
393391
<!-- Tags -->
@@ -569,13 +567,13 @@ <h3>{lang:Navigate}</h3>
569567
{/block:Twitter}
570568

571569
{block:IfDisqusShortname}
570+
// Disqus vars
571+
var disqus_shortname = '{text:Disqus Shortname}';
572572
{block:Permalink}
573573
{block:Posts}
574574
{block:Date}
575-
// Disqus vars
576575
var disqus_url = '{Permalink}';
577576
var disqus_title = '{block:PostTitle}{PlaintextPostTitle}{/block:PostTitle}';
578-
var disqus_shortname = '{text:Disqus Shortname}';
579577
var disqus_identifier = '{PlaintextPostID}';
580578
{/block:Date}
581579
{/block:Posts}

js/plugins.js

-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ window.log = function(){
1818
}
1919
})((function(){
2020
try
21-
2221
{
2322
console.log();
2423
return window.console;
2524
}catch(err){
2625
return window.console={};
27-
2826
}
2927
})());
3028

0 commit comments

Comments
 (0)