display number of comments
This commit is contained in:
parent
4a11f0c850
commit
068308047c
3
_includes/comments-counter.html
Normal file
3
_includes/comments-counter.html
Normal 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>
|
||||
@ -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];
|
||||
|
||||
|
||||
@ -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 %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user