-
Notifications
You must be signed in to change notification settings - Fork 52
Disqus not working correctly #13
Copy link
Copy link
Open
Description
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
<!-- ghostion/partials/widgets/at_disqus.hbs -->
<div id="at_disqus">
<div id="disqus_thread">
<a class="button small radius" href="#" onclick="atPost.loadDisqus('{{post.id}}');return false;"><span class="fa fa-comments"></span> Discuss</a>
</div>
</div>// ghostion/assets/js/ghostion.min.js
var atPost=atPost||{};atPost.loadDisqus=function(post_id){var disqus_identifier=post_id;e=document.createElem...Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels