Add reading time #225
pitscher
started this conversation in
Feature requests
Replies: 1 comment
-
By the way: I saw that someone requested this to be added (#12) - however, it seems like it was not done. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, although the PR #223 is in review I got another idea.
What about the possibility to add the reading time to e.g. posts.
Hugo can compute this pretty easily. I added this + a custom
reading_time
config for each language + the option for a user to specify for which content types such a reading time should be shown (to give them as much flexibility as possible).Example
A user with a website that hosts blog posts and projects (all different types of content pages) can decide to only display a posts reading time (and not the reading time of a projects page).
It looks like this (translation support included):
![Screenshot 2024-08-28 at 23 44 13](https://private-user-images.githubusercontent.com/31487664/362460831-0bfe9059-0f2a-45cc-8ecd-c82fa1ce0945.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTg0MTAsIm5iZiI6MTczOTM1ODExMCwicGF0aCI6Ii8zMTQ4NzY2NC8zNjI0NjA4MzEtMGJmZTkwNTktMGYyYS00NWNjLThlY2QtYzgyZmExY2UwOTQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDExMDE1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ1MjIxZWUyZjY0NmU0ODU4Y2I1NDVjNWQwZGViMjU4MjgxZDczMmNkNTBjNmEyZTZjYWUzMzMyOTg3MmExZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.i-19KMoXzzUvPUJ8bLPmlg0tmeooiJwIn9pFnmDlxMA)
Would you be happy to see another PR for this? 🤓
Beta Was this translation helpful? Give feedback.
All reactions