Skip to content
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

Inject readingTime in post.frontmatter #3

Open
thlmenezes opened this issue Aug 29, 2022 · 0 comments
Open

Inject readingTime in post.frontmatter #3

thlmenezes opened this issue Aug 29, 2022 · 0 comments

Comments

@thlmenezes
Copy link

"If you plan to use rawContent for calculating values like “reading time,” we suggest using a remark or rehype plugin to inject frontmatter instead! See our reading time example for more."

With this, the [slug].astro could be simpler and half getPostData code could be refactored to a plugin, as in the example.

Source:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant