From 61c2ae03b25cb57b97d72714a1b20ab2197e8e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaud=20Lepr=C3=AAtre?= Date: Sun, 13 Nov 2016 20:45:00 +0100 Subject: [PATCH] Remove disqus if not on blog post fixes #22 --- layouts/partials/script.html | 50 +++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/layouts/partials/script.html b/layouts/partials/script.html index 3201316e..7fd8e1bb 100644 --- a/layouts/partials/script.html +++ b/layouts/partials/script.html @@ -19,31 +19,33 @@ }); }); -{{ if not (eq .Params.comments false) }} - {{ if .Site.DisqusShortname }} - + s.setAttribute('data-timestamp', +new Date()); + (d.head || d.body).appendChild(s); + })(); + + {{ end }} {{ end }} {{ end }} {{ if $.Site.Params.swiftype_install_key }}