Skip to content
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 comments are not getting loaded #81

Open
itsraghz opened this issue Jun 16, 2021 · 2 comments
Open

disqus comments are not getting loaded #81

itsraghz opened this issue Jun 16, 2021 · 2 comments

Comments

@itsraghz
Copy link

itsraghz commented Jun 16, 2021

Hi @dsrkafuu , I need your help in getting the disqus comments loaded in my blog post. As per the config given in the exampleSite, I have the following in my config.toml file but still I don't get the disqus comments loaded.

FYI, I am an existing user of disqus and I certainly have a good amount of comments available in my account with disqus.

config.toml file
` show_comments = true

disqusShortname = "itsraghz"
\ # If you want to use DisqusJS, please remember to set disqusJSApi to anything in your config.toml to load CSS.
disqusJSApi = "itsraghz"
disqus_identifier = "itsraghz" `

Also I copied the comments-*.html file from theme\layouts\partialstolayouts\partials`.

Any help would be highly appreciated.

Cheers,
RM....

@dsrkafuu
Copy link
Owner

Only disqusShortname is needed if you don't use https://github.com/SukkaW/DisqusJS.

In https://github.com/dsrkafuu/hugo-theme-fuji/blob/master/layouts/partials/comment-disqus.html,
default disqus settings are:

this.page.url = '{{ .Permalink }}';
this.page.identifier = '{{ .File.ContentBaseName }}';

You can also change the post identifier if needed.

@itsraghz
Copy link
Author

Thanks @dsrkafuu . It worked as long as I commented out the disqusJsApi and retained only the disqusShortname :) Also I updated the name matching with what I had configured in the website 'raghsonline' - (earlier I had configured with my login username - itsraghz). That was another bug!

Now, one other QQ. Why doesn't it always get displayed? I need to click on 'Load disqus comments' . I remember somewhere it was for an optimization of bandwidth. Isnt't it? Can we turn it on always in the PROD site?

image

image

Cheers,
RM...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants