Merge branch 'dev-comments-counter' of rajukottedi/chirpy-blogging into dev

This commit is contained in:
Bangara Raju Kottedi 2023-09-13 09:16:14 +05:30 committed by Gogs
commit 42c7da8e74
4 changed files with 7 additions and 1 deletions

View File

@ -57,6 +57,7 @@ post:
updated: Updated
views: Views
likes: Likes
comments: Comments
words: words
pageview_measure: views
read_time:

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>
<em class="remark42__counter"></em>

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 %}