Insert the following script at the bottom of your page:
SHORTNAME is your disqus Shortname/ID. It is different from the usual
#disqus_thread at the end of each URL in each
<a> tag that needs to display the list of comments. It is important that the URL before the anchor corresponds to a URL with comments ON.
In the markup above, the
# COMMENTS text will be replaced by the number of comments (0 comments, 1 comment, n comments..)
You can specify the strings to be used in your admin page.
Here is how I do it with Hexo (ejs template) but it can easily be adapted to anything else.
This will generate the correct script tag at the end of the
embed.jsif it’s a ‘details’ page
count.jsif it’s the home page
Then use the following code to declare the link
You can check out Hexo’s default theme (at the time of writing) for more information.