Permalink
Browse files

Use internal implementation of disqus.

  • Loading branch information...
jbub
jbub committed Dec 1, 2015
1 parent a589e96 commit 7f12d8ec647c75b770a070703bd5bcfc7d0f46dc
Showing with 6 additions and 17 deletions.
  1. +1 −1 README.md
  2. +1 −0 exampleSite/config.toml
  3. +3 −15 layouts/partials/disqus.html
  4. +1 −1 theme.toml
View
@@ -22,6 +22,7 @@ title = "mytitle"
theme = "ghostwriter"
languageCode = "en-us"
copyright = "My Name"
disqusShortname = "XXX"
[Author]
name = "My Name"
@@ -40,7 +41,6 @@ copyright = "My Name"
twitter = "https://twitter.com/XXX"
stackoverflow = "http://stackoverflow.com/users/XXX/YYY"
ganalytics = "XXX"
disqus = "XXX"
[Permalinks]
post = "/:year/:month/:day/:filename/"
View
@@ -3,6 +3,7 @@ title = "Ghostwriter example"
theme = "ghostwriter"
languageCode = "en-us"
copyright = "My Name"
disqusShortname = "XXX"
[Author]
name = "My Name"
@@ -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}}
{{ end }}
View
@@ -5,7 +5,7 @@ description = "A fork of simple AJAX driven theme for the Ghost blogging platfor
homepage = "https://github.com/jbub/ghostwriter"
tags = ["blog", "technical", "personal"]
features = ["blog", "technical", "personal"]
min_version = 0.13
min_version = 0.15
[author]
name = "Juraj Bubniak"

0 comments on commit 7f12d8e

Please sign in to comment.