Wednesday, September 13, 2006

More hacking into the comments line

On second thought: why not adapt the "0 comments" to something more interesting like "No comments at all" or "Please please please leave a comment" ?

It is easy as this. For explanation see my post on the 1 comment workaround.

<b:if cond='data:post.allowComments'>
<a class='comment-link' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick'>
<b:if cond='data:post.numComments == 1'>1 comment
<b:if cond='data:post.numComments == 0'>No comments
<data:post.numComments/> <data:top.commentLabelPlural/>

No comments:

Post a Comment