X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=blobdiff_plain;f=theme%2Fstatic%2Fjs%2Fcomment_counts.js;fp=theme%2Fstatic%2Fjs%2Fcomment_counts.js;h=ced469a0efb0c082fb03111fe7f64be776a148d4;hp=1a3d281c197699c85175c431470dc76464d52384;hb=c9201f74e57b28b539128380b87656bbcbacca7a;hpb=1c68d03eff9325aeb585752b7629c62178f23c93 diff --git a/theme/static/js/comment_counts.js b/theme/static/js/comment_counts.js index 1a3d281..ced469a 100644 --- a/theme/static/js/comment_counts.js +++ b/theme/static/js/comment_counts.js @@ -18,6 +18,9 @@ function placeCommentCounts() { for (let [i, container] of containers.entries()) { let a = document.createElement('a'); let count = counts[i]; + if count === 0 { + count = "no"; + } let pluralizer = count === 1 ? "" : "s"; let text = document.createTextNode(`${count} comment${pluralizer}`); a.appendChild(text);