diff --git a/app/templates/posts/show.html.slim b/app/templates/posts/show.html.slim index b16d31b..33bb517 100644 --- a/app/templates/posts/show.html.slim +++ b/app/templates/posts/show.html.slim @@ -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"