From cd31dbcc62dba3cc6d22f4a417198037617df7d2 Mon Sep 17 00:00:00 2001 From: David Kebler Date: Thu, 30 Mar 2017 11:44:42 -0700 Subject: [PATCH] add disqus to template conditionally on shortName parameter --- layouts/index.html | 1 + layouts/partials/disqus.html | 44 ++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 layouts/partials/disqus.html diff --git a/layouts/index.html b/layouts/index.html index 873d35e..ed37f80 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,6 +7,7 @@ {{ partial "hero.html" . }} {{ partial "sections.html" . }} +{{ if .Site.DisqusShortname }} {{ partial "disqus.html" . }} {{ end }} {{ partial "js.html" . }} diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html new file mode 100644 index 0000000..551b4c5 --- /dev/null +++ b/layouts/partials/disqus.html @@ -0,0 +1,44 @@ +
+ + +comments powered by Disqus + + + + + +