From aff7c3515fef27bbc6bdb111457f9e0b7cdb02f2 Mon Sep 17 00:00:00 2001 From: vimux Date: Fri, 23 Feb 2018 16:01:12 +0300 Subject: [PATCH] Add internal comments (Disqus) partial --- layouts/_default/single.html | 1 + layouts/partials/comments.html | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 layouts/partials/comments.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 77273cb..ae18dae 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,5 +7,6 @@ {{ if .Params.tags }}{{ partial "post_tags.html" . }}{{ end }} + {{ partial "comments.html" . }} {{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html new file mode 100644 index 0000000..b7b93c6 --- /dev/null +++ b/layouts/partials/comments.html @@ -0,0 +1,5 @@ +{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }} +
+ {{ template "_internal/disqus.html" . }} +
+{{ end }} \ No newline at end of file