From 367efcf2ab744dedc8236b29dfd4fa8709b4c913 Mon Sep 17 00:00:00 2001 From: Juliet Date: Fri, 3 Apr 2026 11:47:51 +0200 Subject: [PATCH] remove repo count in backlinks directory --- src/components/backlinks.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/backlinks.tsx b/src/components/backlinks.tsx index 01a24b9..9451af8 100644 --- a/src/components/backlinks.tsx +++ b/src/components/backlinks.tsx @@ -24,7 +24,6 @@ type CollectionGroup = { collection: string; entries: BacklinkEntry[]; totalRecords: number; - totalDids: number; }; const flattenLinks = (links: Record): BacklinkEntry[] => { @@ -58,7 +57,6 @@ const groupByCollection = (entries: BacklinkEntry[]): CollectionGroup[] => { collection, entries, totalRecords: entries.reduce((sum, e) => sum + e.counts.records, 0), - totalDids: entries.reduce((sum, e) => sum + e.counts.distinct_dids, 0), })); }; @@ -156,8 +154,7 @@ const BacklinkDirectory = (props: { groups: CollectionGroup[]; pathname: string
- {group.totalRecords} from {group.totalDids} repo - {group.totalDids > 1 ? "s" : ""} + {group.totalRecords} record{group.totalRecords !== 1 ? "s" : ""}
-- 2.51.2