-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disqus not working correctly #13
Comments
It's not pretty, but it works for me. Thanks for the solution! |
Thanks for the fix - I've implemented it into my version of Ghostion. |
Did you update ghostion/partials/widgets/at_disqus.hbs? |
Thanks, but I determined the fix. For Ghost 0.5.8 (current), change ghostion.min.js as @nectarine recommends, and change at_disqus.hbs to be the following: <!-- ghostion/partials/widgets/at_disqus.hbs -->
<div id="at_disqus">
<div id="disqus_thread">
<a class="button small radius" href="#" onclick="atPost.loadDisqus({{id}});return false;"><span class="fa fa-comments"></span> Discuss</a>
</div>
</div> |
The main problem is every post has same disqus, because var disqus_identifier not set correctly.
var disqus_identifier would be dynamically set by ghostion.min.js.
However, ghostion.min.js is served as static resource, so var disqus_identifier will not be updated due to 304 response(not modified).
Javascript variable style is your intended structure, so I don't want to make a pull request with my style(function parameter style).
With function parameter, I avoid this with
The text was updated successfully, but these errors were encountered: