Grammatically Correct Comment Count
From Bloggerhacks
(Difference between revisions)
(→Sites Using This Hack) |
(This hack is a Blogger Classic Hack) |
||
Line 31: | Line 31: | ||
[[Category:Comments]] | [[Category:Comments]] | ||
- | [[Category: | + | [[Category:Blogger Classic]] |
Revision as of 07:14, 11 April 2007
Contents |
Platform
For use with Blogger blogs.
Author
Homepage
Grammatically Correct Comment Count
Skill Level
You must be comfortable with editing your Blogger template.
Description
This hack addresses the problem of correctly handling plurals with comments. For example, it should read 0 comments, 1 comment or 2 comments etc. That is, comment should be plural for all cases except when there's a solitary comment.
Method
- Edit your Blogger template to include four lines of JavaScript, per the instructions.