瀏覽代碼

Add option to disable comments on a per-post basis (using `disable_comments = true` in post preamble)
Closes #23

George Cushen 9 年之前
父節點
當前提交
ea14475b1f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      layouts/partials/comments.html

+ 1 - 1
layouts/partials/comments.html

@@ -1,4 +1,4 @@
-{{ if not (isset .Site.Params "disable_comments") }}
+{{ if and (and (not (eq .Site.DisqusShortname "")) (not (isset .Site.Params "disable_comments")) (not (isset .Params "disable_comments"))) }}
 <section id="comments">
     <div id="disqus_thread">
         {{ template "_internal/disqus.html" . }}