display number of comments

This commit is contained in:
Bangara Raju Kottedi 2023-09-13 09:10:56 +05:30
parent 4a11f0c850
commit 068308047c
3 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,3 @@
<i class="fa fa-comment" {% if include.tooltip %} title="{{site.data.locales[include.lang].post.comments}}"
data-bs-toggle="tooltip" data-bs-placement="bottom" {% endif %}></i>
<span class="remark42__counter"></span>

View File

@ -21,7 +21,7 @@
s.defer = true;
(d.head || d.body).appendChild(s);
}
})(remark_config.components || ['embed']);
})(remark_config.components || ['embed', 'counter']);
var targetDiv = document.getElementById("sidebar").getElementsByClassName("mode-toggle")[0];

View File

@ -35,7 +35,9 @@ tail_includes:
<!-- post counter -->
<div id="likes-views">
{% include likes-views.html tooltip=true lang=lang %}
{% include comments-counter.html tooltip=true lang=lang %}
</div>
</div>
{% if page.image %}