From 92c9cf8e4bd66d224d060cc277d61d3c2086f092 Mon Sep 17 00:00:00 2001 From: Marco Blessing Date: Fri, 20 Oct 2017 20:26:31 +0200 Subject: [PATCH] fix indentation and liquid whitespace (#273) --- _includes/disqus.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/_includes/disqus.html b/_includes/disqus.html index fd05ba0..dd80975 100644 --- a/_includes/disqus.html +++ b/_includes/disqus.html @@ -1,17 +1,17 @@ -{% if site.disqus %} +{%- if site.disqus -%}
-
- - + var disqus_url = url_parts[0]; + (function() { + var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; + dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); + })(); + +
-{% endif %} +{%- endif -%}