]> njoseph.me Git - hyde.git/blobdiff - layouts/_default/single.html
Fix disqusShortname conditional
[hyde.git] / layouts / _default / single.html
index 6bd252422c96b2edc90916a4979f6db4119f947b..2a8e053c78560dcc7764b74fb0b41b8147c0ece0 100644 (file)
@@ -1,5 +1,5 @@
        {{ partial "head.html" . }}
-       <body class="{{ .Site.Params.themeColor }}">
+       <body class="{{ .Site.Params.themeColor }} {{if .Site.Params.layoutReverse}}layout-reverse{{end}}">
                {{ partial "sidebar.html" . }}
 
                <div class="content container">
@@ -9,7 +9,7 @@
                              {{ .Content }}
                        </div>
 
-                       {{ if and (isset .Site.Params "disqusShortname") (ne .Site.Params.disqusShortname "") }}
+                       {{ if .Site.Params.disqusShortname }}
                                <h2>Comments</h2>
                                {{ partial "disqus" . }}
                        {{ end }}