feat: Add post list result count and style counts

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-08 13:46:54 +08:00
1 parent 3e0d1a9664
commit ba9baaf0dd
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@
</div> </div>
<!-- Merit Category Count --> <!-- Merit Category Count -->
<div id="merit-category-count-container" class="mb-4 text-sm text-gray-600"> <div id="merit-category-count-container" class="mb-4 text-sm text-primary">
{% comment %} {% comment %}
TODO: This count should be dynamically updated by JavaScript TODO: This count should be dynamically updated by JavaScript
when a filter is selected. For now, it shows a static count when a filter is selected. For now, it shows a static count
+7
View File
@@ -51,6 +51,13 @@
</div> </div>
</div> </div>
<div id="result-count-container" class="mb-4 text-sm text-primary">
<p>
Showing <span id="results-count" class="font-semibold">20</span> results for <span class="font-semibold">"query"</span>.
</p>
</div>
<!-- Post List --> <!-- Post List -->
<div id="post-list-container" class="post-list space-y-4"> <div id="post-list-container" class="post-list space-y-4">
{% assign posts = site.posts %} {% assign posts = site.posts %}