Enabling comments using Disqus
This component allows to enable comments for the pages on the site.
Component is using Disqus for comments. It is required to have Disqus account to use this component (free version is supported).
Parameters
- short-name - disqus account short name
- count - true to enable the comments count badge
- environment - environment where comments are enabled (default production). Use - to enable comments in all environments.
- sitemap (page metadata) - if false, comments will not be rendered
- comments (page metadata) - if false, comments will not be rendered
Usage
Add the include into the html, where it needs to be rendered.
<article class="post"> {% disqus %} </article>
To show the comments count badge add the
<a href="@Model.Page.FullUrl#disqus_thread" data-disqus-identifier="@Model.Page.FullUrl"></a>
This component is included into the user guide theme and blog theme