add an option to display or not reading time from notes
This commit is contained in:
parent
7e65e80b49
commit
f63887f564
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
|
|||
segments.push(formatDate(getDate(cfg, fileData)!, cfg.locale))
|
||||
}
|
||||
|
||||
if (enabled !== false) {
|
||||
// Display reading time if enabled
|
||||
if (options.showReadingTime) {
|
||||
const { minutes, words: _words } = readingTime(text)
|
||||
|
|
Loading…
Reference in a new issue