1
0
Fork 0

add an option to display or not reading time from notes

This commit is contained in:
Lucas 2024-01-18 14:08:29 +01:00
parent 7e65e80b49
commit f63887f564

View file

@ -33,6 +33,7 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
segments.push(formatDate(getDate(cfg, fileData)!, cfg.locale)) segments.push(formatDate(getDate(cfg, fileData)!, cfg.locale))
} }
if (enabled !== false) {
// Display reading time if enabled // Display reading time if enabled
if (options.showReadingTime) { if (options.showReadingTime) {
const { minutes, words: _words } = readingTime(text) const { minutes, words: _words } = readingTime(text)