Add upvotes and comments count to single post metadata
Updated the single post metadata to include upvotes and comments count. Adjusted the layout template to correctly reference the new comments_count field from the page object.
This commit is contained in:
1 parent
09b03dfa5b
commit
285de9287b
2 files changed
+3
-1
No files matched your search
@@ -24,7 +24,7 @@ layout: default
|
||||
<i class="fas fa-reply mr-1"></i> REPLY
|
||||
</span>
|
||||
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
|
||||
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }}
|
||||
<i class="fas fa-comment mr-1"></i> {{ page.comments_count }}
|
||||
</span>
|
||||
</div>
|
||||
<small class="text-sm font-action">
|
||||
|
||||
Reference in new issue
Block a user