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

how to show disqus comment section using razor #3

Open
barcollin opened this issue Sep 15, 2020 · 8 comments
Open

how to show disqus comment section using razor #3

barcollin opened this issue Sep 15, 2020 · 8 comments

Comments

@barcollin
Copy link

barcollin commented Sep 15, 2020

I was wondering that after adding the disqus part into my newspost. how do I show the comment section on my post post. I can only see the disqus part that has only hidecomments

image

@agriffard
Copy link
Owner

If you are using a Liquid template to render a Blog Post, add this code:
{{ Model.Content.DisqusPart | shape_render }}

@agriffard
Copy link
Owner

Did you follow the Readme?

Edit the settings of the Disqus Part and enter the name of the site that you created on https://disqus.com/.
Do not forget to set a Base Url in the General settings of your site (even if you are testing on localhost).

@barcollin
Copy link
Author

I am using razor

@barcollin
Copy link
Author

Yes I did update my general settings. I am on localhost

@agriffard
Copy link
Owner

Is the Liquid feature enabled?
Is there anything rendered in the HTML code at the end of your page to load the https://yourDisqusSite.disqus.com/embed.js script?

@DiomedesDominguez
Copy link

I'm using the latest release candidate and I followed the instructions to show the comments sections in a blog post, but it won't load http://test.linuxdominicana.org/blog/post-1

Screenshot from 2020-10-20 19-24-01

Screenshot from 2020-10-20 19-21-48

@DiomedesDominguez
Copy link

At the end, I decide to create a decoupled website and use the javascript block to insert disqus comments.

@saleemhaq
Copy link

I am using razor syntax and in Decouple CMS what should I write instead of that: {{ Model.Content.DisqusPart | shape_render }} In razor page: I try with differ approaches but not luck please advise : @agriffard @DiomedesDominguez @barcollin @deanmarcussen

image

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

4 participants