Skip to content

Disqus not working correctly #13

@nectarine

Description

@nectarine

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions