Pluralise comment text

This commit is contained in:
2023-12-21 20:29:30 +11:00
parent 202c0fcf4e
commit 38175e45ff

View File

@@ -45,7 +45,7 @@ article class="h-entry"
img class="shadow-solid shadow-pink-100 dark:shadow-pink-200 rounded mb-4" src=post.large_map
-if post.webmentions && post.webmentions.count > 0
div class="mt-12"
h3 #{post.webmentions.count} Comment(s)
h3 #{post.webmentions.count} Comment#{post.webmentions.count != 1 ? "s" : ""}
- post.webmentions.each do |mention|
div class="prose-p:m-1 mb-6 p-4 bg-gray-100 border border-gray-200 dark:bg-gray-900 dark:border-gray-800 rounded"
div class="flex h-8"