ORIGIN

Add Comments

Blog 1 mins284 words
This article was written 1893 days ago. The content of the article may be out of date.

Because of my first theme was so incomplete that I need to add many features myself. So I’ve looked for how to add comment system on the blog.

By asking many friends and searching, I first used gitment. When I finally make it work which is initial the comment, I found that the gitment is no longer served. So I changed to disqus but I can’t make it work because it has the code in ejs but my theme is written in jade. I don’t know how to exactly change ejs to jade, so I change my theme again. And Finally, I used LiveRe.

First register. And click install.

img

Choose the free version and install. Fill the blanks.

img

My LiveRe name is arbitrary and the site URL is your blog URL. And you can choose SNS.

Then you will get a piece of code. Like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- LiveRe City install code -->
<div id="lv-container" data-id="city" data-uid="MTAyMC80NTk3NS8yMjQ4Ng==">
<script type="text/javascript">
(function(d, s) {
var j, e = d.getElementsByTagName(s)[0];

if (typeof LivereTower === 'function') { return; }

j = d.createElement(s);
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
j.async = true;

e.parentNode.insertBefore(j, e);
})(document, 'script');
</script>
<noscript>Please activate JavaScript for write a comment in LiveRe</noscript>
</div>
<!-- completed City install code -->

Then place your code in a certain place of your blog setting files. Usually you just need to change your original blog’s comment code.

TOP
COMMENT
  • ABOUT
  • |
o_oyao
  The Jigsaw puzzle is incomplete with even one missing piece. And I want to be the last piece to make the puzzle complete.
Like my post?
Default QR Code
made with ❤️ by o_oyao
©o_oyao 2019-2024

|