From 83ebe8d02e62e5e1121059843b1cd4eddd65054f Mon Sep 17 00:00:00 2001 From: soyalejolopez Date: Wed, 22 Jul 2026 11:42:29 -0500 Subject: [PATCH] Remove upvote counter from landing-page cards The card upvote count was baked into a static resource-stats.json that is only regenerated by a daily CI job (cron 0 6 * * *), so a fresh reaction would not show up for up to ~24h. Combined with the fact that only one resource currently has a backing discussion, the counter was misleading. This removes the upvote count *display* from both the comfortable and compact card views (and the compact 'Votes' header column + orphaned CSS). Voting itself is unchanged: the giscus-backed 'Community & upvotes' panel on the detail page still works, and the upvotes value is still loaded in getStats and used by the Popular/Trending/Engaging sort logic. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 888b1353-6309-4a90-bb0f-9b7b716a32dc --- index.html | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 329a4f8..a8f3c82 100644 --- a/index.html +++ b/index.html @@ -637,8 +637,8 @@ width: 80px; text-align: right; } - .compact-views, .compact-votes { display: none; } - .compact-views, .compact-votes { + .compact-views { display: none; } + .compact-views { align-items: center; gap: 0.25rem; color: var(--text-lighter); @@ -650,11 +650,7 @@ width: 60px; justify-content: flex-end; } - .grid.compact .compact-votes { - width: 70px; - justify-content: flex-end; - } - .grid.compact .compact-views, .grid.compact .compact-votes { + .grid.compact .compact-views { display: flex; } .grid.compact .card-stats { display: none; } @@ -696,7 +692,6 @@ .ch-name { flex: 0 0 250px; } .ch-desc { flex: 1; } .ch-views { width: 60px; text-align: right; } - .ch-votes { width: 70px; text-align: right; } .ch-format { width: 100px; } .ch-date { width: 80px; text-align: right; } @@ -1392,7 +1387,6 @@

Tools & templates for Microsoft 365

Name
Description
Views
-
Votes
Format
Updated
@@ -2139,10 +2133,6 @@

${formatCount(stats.views)} ` : ''} - ${stats.hasUpvotes ? `
- - ${formatCount(stats.upvotes)} -
` : ''}