Browse Source

Fix disqusShortname conditional

Fixes #43
Bjørn Erik Pedersen 7 years ago
parent
commit
80695973ac
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      layouts/_default/single.html

+ 1
- 1
layouts/_default/single.html View File

9
 			      {{ .Content }}
9
 			      {{ .Content }}
10
 			</div>
10
 			</div>
11
 
11
 
12
-			{{ if and (isset .Site.Params "disqusShortname") (ne .Site.Params.disqusShortname "") }}
12
+			{{ if .Site.Params.disqusShortname }}
13
 				<h2>Comments</h2>
13
 				<h2>Comments</h2>
14
 				{{ partial "disqus" . }}
14
 				{{ partial "disqus" . }}
15
 			{{ end }}
15
 			{{ end }}