diff --git a/packages/starlight-blog/libs/readingTime.ts b/packages/starlight-blog/libs/readingTime.ts index b2e4ffe..12b5126 100644 --- a/packages/starlight-blog/libs/readingTime.ts +++ b/packages/starlight-blog/libs/readingTime.ts @@ -24,6 +24,6 @@ export function formatReadingTime(readingTime: number): string { return readingTime < 60 ? `${readingTime} min` : readingTime % 60 === 0 - ? `${readingTime / 60} h` - : `${Math.floor(readingTime / 60)}h ${readingTime % 60}min` + ? `${readingTime / 60} h` + : `${Math.floor(readingTime / 60)}h ${readingTime % 60}min` }