Skip to content

Hotfix reading time for tutorials #15202

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

Merged
merged 1 commit into from
Mar 28, 2025
Merged

Hotfix reading time for tutorials #15202

merged 1 commit into from
Mar 28, 2025

Conversation

pettinarip
Copy link
Member

Description

Removes hardcoded read time for tutorials and calculate it using reading-time lib.

@github-actions github-actions bot added the tooling 🔧 Changes related to tooling of the project label Mar 28, 2025
Copy link

netlify bot commented Mar 28, 2025

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 8906a43
🔍 Latest deploy log https://app.netlify.com/sites/ethereumorg/deploys/67e6e59aa3fcb50008e24d45
😎 Deploy Preview https://deploy-preview-15202--ethereumorg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 52 (🔴 down 12 from production)
Accessibility: 95 (🟢 up 1 from production)
Best Practices: 89 (🔴 down 9 from production)
SEO: 98 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@corwintines corwintines merged commit 85beec3 into master Mar 28, 2025
6 checks passed
@corwintines corwintines deleted the hotfix-read-time branch March 28, 2025 19:59
This was referenced Apr 16, 2025
@@ -97,8 +98,7 @@ export default async function Page({
lastEditLocaleTimestamp={lastEditLocaleTimestamp}
contentNotTranslated={!isTranslated}
contributors={contributors}
// TODO: Remove this once we have a real timeToRead value
timeToRead={2}
timeToRead={Math.round(timeToRead.minutes)}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might need to add a default value here as a fallback in case timeToRead.minutes returns something undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling 🔧 Changes related to tooling of the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants