-
Notifications
You must be signed in to change notification settings - Fork 21
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
Implement basic reading time
functionality
#91
base: main
Are you sure you want to change the base?
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 |
Describe the pull request
Add reading time after discussion #74 was left open for 3 months.
How
new Starlight component override:
PageTitle.astro
add property to
config.ts
(showReadingTime
: generall set if readingTime should be calculated) and schema (readingTime
: manually override calculated readingTime or show specific readingTime ifshowReadingTime
is deactivated)additional libs file (
readingTime.ts
)change the
MarkdownContent.astro
andMetadata.astro
files and createPageTitle.astro
fileIf readingTime is too large it shows in hours and minutes
write tests for
libs/readingTime.ts
Screenshots
manual override: