From 068308047c1e0cb9fdedd5904c0a988b39fb4e63 Mon Sep 17 00:00:00 2001 From: Bangara Raju Kottedi Date: Wed, 13 Sep 2023 09:10:56 +0530 Subject: [PATCH] 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 %}