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

github.com/jbub/ghostwriter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbub <contact@jbub.eu>2015-12-01 17:20:17 +0300
committerjbub <contact@jbub.eu>2015-12-01 17:20:17 +0300
commit7f12d8ec647c75b770a070703bd5bcfc7d0f46dc (patch)
tree32c3ae981011297b3954874244acdeed943d56fd /layouts
parenta589e9623d2b441791402ceb2b75b585d99e12a0 (diff)
Use internal implementation of disqus.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/disqus.html18
1 files changed, 3 insertions, 15 deletions
diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html
index f0637af..2811bb4 100644
--- a/layouts/partials/disqus.html
+++ b/layouts/partials/disqus.html
@@ -1,17 +1,5 @@
-{{ if .Site.Params.disqus }}
+{{ if .Site.DisqusShortname }}
<div class="comments">
- <div id="disqus_thread"></div>
- <script>
- var disqus_title = '{{ .Title }}';
- var disqus_identifier = '{{ .RelPermalink }}';
- var disqus_shortname = '{{ .Site.Params.disqus }}';
- var disqus_url = '{{ .Permalink }}';
- (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);
- })();
- </script>
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
+ {{ template "_internal/disqus.html" . }}
</div>
-{{ end}} \ No newline at end of file
+{{ end }} \ No newline at end of file