We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc4dc68 commit 6204234Copy full SHA for 6204234
src/routes/blog/_blog-api.ts
@@ -7,7 +7,7 @@ import marked from 'marked';
7
import Prism from 'prismjs';
8
import 'prism-svelte';
9
import loadLanguages from 'prismjs/components/index.js';
10
-import readingTime from 'reading-time';
+import { readingTime } from '$lib/utils/reading-time';
11
12
loadLanguages(['shell', 'markdown', 'json']);
13
@@ -54,7 +54,7 @@ const posts = fs
54
};
55
const html = marked(postFrontMatter.body, { renderer });
56
57
- const readingTimeDuration = readingTime(postFrontMatter.body).text;
+ const readingTimeDuration = readingTime(postFrontMatter.body).time;
58
59
return {
60
metadata: {
0 commit comments