From 068308047c1e0cb9fdedd5904c0a988b39fb4e63 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Wed, 13 Sep 2023 09:10:56 +0530 Subject: [PATCH 1/3] display number of comments --- _includes/comments-counter.html | 3 +++ _includes/comments/remark42.html | 2 +- _layouts/post.html | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 _includes/comments-counter.html diff --git a/_includes/comments-counter.html b/_includes/comments-counter.html new file mode 100644 index 0000000..d8c24cc --- /dev/null +++ b/_includes/comments-counter.html @@ -0,0 +1,3 @@ + + \ No newline at end of file diff --git a/_includes/comments/remark42.html b/_includes/comments/remark42.html index 87ca7b9..668c06b 100644 --- a/_includes/comments/remark42.html +++ b/_includes/comments/remark42.html @@ -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]; diff --git a/_layouts/post.html b/_layouts/post.html index 752f30a..058c77a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -35,7 +35,9 @@ tail_includes:
{% include likes-views.html tooltip=true lang=lang %} + {% include comments-counter.html tooltip=true lang=lang %}
+ {% if page.image %} From 80485e0efd8301503fb9942d6d904ea96559a431 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Wed, 13 Sep 2023 09:11:22 +0530 Subject: [PATCH 2/3] comments counter ui --- _includes/comments-counter.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/comments-counter.html b/_includes/comments-counter.html index d8c24cc..253797c 100644 --- a/_includes/comments-counter.html +++ b/_includes/comments-counter.html @@ -1,3 +1,3 @@ - \ No newline at end of file + \ No newline at end of file From b9c449072765b0539618063395351b6b7b3d5605 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Wed, 13 Sep 2023 09:11:37 +0530 Subject: [PATCH 3/3] comments counter tooltip --- _data/locales/en.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_data/locales/en.yml b/_data/locales/en.yml index 15e5831..7c3b9af 100644 --- a/_data/locales/en.yml +++ b/_data/locales/en.yml @@ -57,6 +57,7 @@ post: updated: Updated views: Views likes: Likes + comments: Comments words: words pageview_measure: views read_time: