Skip to content

Commit 8f8b232

Browse files
authored
Round up reading time using Math.ceil
1 parent 3b39b5a commit 8f8b232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/project/types/website/util/discover-meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function estimateReadingTimeMinutes(
9999
): number | undefined {
100100
if (markdown) {
101101
const wordCount = markdown.split(" ").length;
102-
return wordCount / kWpm;
102+
return Math.ceil(wordCount / kWpm);
103103
}
104104
return 0;
105105
}

0 commit comments

Comments
 (0)