Skip to content

Commit ebe1e37

Browse files
committed
Change behavior a bit
1 parent b2e39d9 commit ebe1e37

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/PartialsUsage.astro

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ import UsageList from "./UsageList.astro";
66
77
const allPartials = await getPartialsUsage();
88
9-
const usedPartials = Object.fromEntries(
10-
Object.entries(allPartials).filter(([key, value]) => value.count > 1),
11-
);
12-
139
const singleUsePartials = Object.fromEntries(
1410
Object.entries(allPartials).filter(([key, value]) => value.count === 1),
1511
);
@@ -19,9 +15,9 @@ const zeroUsePartials = Object.fromEntries(
1915
);
2016
---
2117

22-
<Details header=`Frequently used - ${Object.keys(usedPartials).length} files`` id="partials-container">
18+
<Details header=`All partials - ${Object.keys(allPartials).length} files`` id="partials-container">
2319
{
24-
[...Object.entries(usedPartials)]
20+
[...Object.entries(allPartials)]
2521
.sort((a, b) => a[0].localeCompare(b[0]))
2622
.map(([name, usage]) => (
2723
<Details

0 commit comments

Comments
 (0)