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
|
<i class="fas fa-reply mr-1"></i> REPLY
|
||||||
</span>
|
</span>
|
||||||
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
|
<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>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<small class="text-sm font-action">
|
<small class="text-sm font-action">
|
||||||
|
|||||||
@@ -5,5 +5,7 @@ permalink: /posts/ask-the-saga-of-the-disappearing-ergonomic-chair-continues/
|
|||||||
author: deskdetective
|
author: deskdetective
|
||||||
date: 2023-10-02 10:00:00 +0000
|
date: 2023-10-02 10:00:00 +0000
|
||||||
slug: 2023-10-02-ask-the-saga-of-the-disappearing-ergonomic-chair-continues
|
slug: 2023-10-02-ask-the-saga-of-the-disappearing-ergonomic-chair-continues
|
||||||
|
upvotes: 15
|
||||||
|
comments_count: 8
|
||||||
---
|
---
|
||||||
Every time I leave my desk, it seems to vanish. Suspecting foul play at this point. Anyone else faced something like this?
|
Every time I leave my desk, it seems to vanish. Suspecting foul play at this point. Anyone else faced something like this?
|
||||||
Reference in new issue
Block a user