Skip to content

Support nutrition field in RecipeJsonLd component #1497

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

Open
ana2201 opened this issue Apr 22, 2025 · 0 comments
Open

Support nutrition field in RecipeJsonLd component #1497

ana2201 opened this issue Apr 22, 2025 · 0 comments

Comments

@ana2201
Copy link

ana2201 commented Apr 22, 2025

Is your feature request related to a problem? Please describe.
The RecipeJsonLd component currently does not support the nutrition field from schema.org/Recipe. This makes it difficult to include structured nutritional data for recipes, which is important for both SEO and user experience

Describe the solution you'd like
I’d like to be able to pass a nutrition object to the RecipeJsonLd component, in line with the NutritionInformation structure. This would allow sites to include details like calories, fat content, protein, etc., as part of the structured data.

Describe alternatives you've considered
Right now, the only alternative is to create a custom JSON-LD script manually, outside of next-seo, which loses the benefit of having a centralized and typed SEO configuration.

Additional context
Here’s the relevant schema.org documentation for Recipe and NutritionInformation.
This is also supported by Google as part of Recipe structured data.

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