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: diff --git a/_includes/comments-counter.html b/_includes/comments-counter.html new file mode 100644 index 0000000..253797c --- /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 %}