From b81d5c54da26a19f4dc0636b2bb6cb1de722b948 Mon Sep 17 00:00:00 2001 From: Frank Tegtmeyer Date: Tue, 1 Nov 2016 15:25:44 +0100 Subject: [PATCH] Disqus integration for single nodes. --- layouts/_default/single.html | 5 +++++ layouts/partials/disqus.html | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 layouts/partials/disqus.html diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d7d3805..ba3bb92 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -23,4 +23,9 @@ {{ partial "sharing-icons.html" . }} {{ end }} + + {{ if .Site.DisqusShortname }} + {{ partial "disqus.html" . }} + {{ end }} + {{ end }} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html new file mode 100644 index 0000000..52e39f8 --- /dev/null +++ b/layouts/partials/disqus.html @@ -0,0 +1,17 @@ +
+ + +comments powered by Disqus