Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Fastbyte01/KeepIt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Pignataro <rogepix@gmail.com>2019-09-12 23:21:49 +0300
committerGiuseppe Pignataro <rogepix@gmail.com>2019-09-12 23:21:49 +0300
commit78e57acf9f60d0b70589f0ae8c61c31d95c5bd48 (patch)
treefc0a95b0a1f0da3a9ff7b11592c10326a67a4c4c
parent287ec0b9d9c94a6ec215957197d9dfbec7be5409 (diff)
Updated Disqus
-rw-r--r--layouts/partials/comments.html17
1 files changed, 2 insertions, 15 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index f48cd70..9a0fe6e 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -1,21 +1,8 @@
{{ if and .IsPage (ne .Params.comment false) -}}
<!-- Disqus Comment System-->
{{- if .Site.DisqusShortname -}}
- <div id="disqus_thread"></div>
- <script type="text/javascript">
- (function() {
- // Don't ever inject Disqus on localhost--it creates unwanted
- // discussions from 'localhost:1313' on your Disqus account...
- if (window.location.hostname === 'localhost') return;
-
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- var disqus_shortname = '{{ .Site.DisqusShortname }}';
- dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- })();
- </script>
- <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
- {{- end -}}
+ {{ template "_internal/disqus.html" . }}
+{{- end -}}
<!-- gitalk Comment System-->
{{- if .Site.Params.gitalk.owner -}}