You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 11, 2020. It is now read-only.
the code required for disqus to load after an ajax request is different from the code required for a normal page load it seems .
It seems disqus has to do some reset of some sort.
You can see the warnings by looking at your browser console.
I had to modify a few things on my end before it worked.
This is what i ended up with but my code also contains some extra stuff also for identifying the specific page through the hugo slug also .
<inputtype="hidden"id="disq_variables"name="disq_variables"data-ident="{{ .Params.slug }}"data-url="{{ .Permalink }}"/><asideclass="post-comments">{{ifne.Params.commentsfalse}}{{with.Site.Params.disqusShortname}}<divid="disqus_thread"></div><scripttype="text/javascript">/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */vardisq_var=document.getElementById('disq_variables');vardisqus_shortname='https-nayibor-github-io';vardisqus_identifier=disq_var.getAttribute('data-ident');vardisqus_url=disq_var.getAttribute('data-url');vardisqus_config=function(){this.language="en";};/* * * DON'T EDIT BELOW THIS LINE * * */(function(){vardsq=document.createElement('script');dsq.type='text/javascript';dsq.async=true;dsq.src='https://'+disqus_shortname+'.disqus.com/embed.js';(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(dsq);})();/* * * Disqus Reset Function * * */varreset=function(newIdentifier,newUrl,newTitle,newLanguage){DISQUS.reset({reload: true,config: function(){this.page.identifier=newIdentifier;this.page.url=newUrl;this.page.title=newTitle;this.language=newLanguage;}});};</script><noscript>Please enable JavaScript to view the <ahref="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>{{ end }}{{ end }}</aside>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When entering my disqus ID into the config and reloading the application disqus comments do not appear on any of the posts.
The text was updated successfully, but these errors were encountered: