-
Notifications
You must be signed in to change notification settings - Fork 36
Implement basic reading time functionality
#91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…l be manually set by frontmatter
|
Deployment failed with the following error: |
|
Okay, I'm sorry for the many commits (Vercel build minutes) HiDeoo, but I think I got the most features covered from #74 |
|
Some thinks to note down before merging:
|
not finished
|
|
It's probably better to wait with this feature until the route data is moved to |
|
Thanks for kicking off the feature. As discussed, I'm closing this PR in favor of #155 which once finished would provide a similar feature with a more robust implementation as this one was not considering markup or internationalization (splitting around |

Describe the pull request
Add reading time after discussion #74 was left open for 3 months.
How
new Starlight component override:
PageTitle.astroadd property to
config.ts(showReadingTime: generall set if readingTime should be calculated) and schema (readingTime: manually override calculated readingTime or show specific readingTime ifshowReadingTimeis deactivated)additional libs file (
readingTime.ts)change the
MarkdownContent.astroandMetadata.astrofiles and createPageTitle.astrofileIf readingTime is too large it shows in hours and minutes
write tests for
libs/readingTime.tsScreenshots
manual override:
