You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `readingTime` callback receives three parameters: the blog content text as a string, front matter as a record of string keys and their values, and the default reading time function. It returns a number (reading time in minutes) or `undefined` (disable reading time for this page).
493
+
The `readingTime` callback receives the following parameters:
494
+
495
+
- `content`: the blog content text as a string
496
+
- `frontMatter`: the front matter as a record of string keys and their values
497
+
- `locale`: the locale of the current Docusaurus site
498
+
- `defaultReadingTime`: the default built-in reading time function. It returns a number (reading time in minutes) or `undefined` (disable reading time for this page).
490
499
491
500
The default reading time is able to accept additional options:
0 commit comments