-
Notifications
You must be signed in to change notification settings - Fork 59
Disqus Support
Phillip Haydon edited this page Aug 12, 2013
·
3 revisions
Snow has a Disqus extension method to help you with adding comments to your website.
First up you need to ensure your .config file contains a siteUrl
{
"siteUrl": "http://www.philliphaydon.com"
}The Site Url is used to create the Disqus Id. This means if your site is using a domain with and without www, the id will be the same and comments will be shared between both.
If you sign up to http://www.disqus.com, and navigate to the dashboard after setting up your site:

Find the shortname for your website on the settings page:

Using the shortname, you can now use the extension method on your website posts layout:
@Html.RenderDisqusComments("philliphaydon")And that's all there is to it. This will render the comments div, and JavaScript scripts element for you.