diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8221a23d..08976000 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -20,25 +20,9 @@ {{- end }} - - {{- if not (eq .Params.comments false) }} - {{- if .Site.DisqusShortname }} -
- - - - {{- end }} + + {{- if $.Site.Params.comments }} + {{- partial "comments.html" . }} {{- end }} diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 00000000..d6ff0103 --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,5 @@ + + + \ No newline at end of file