-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add Article structured data #83
Comments
Thanks for the feedback 🙌 I definitely think that could be a good improvement.
I'll need to read again the documentation but I'm leaning towards using the Microdata format instead of JSON-LD, maybe a bit easier to maintain. Not sure when I'll have time to implement this but altho worth noting that |
Is your feature request related to a problem?
Developers can add structured data to their website to help Google Search understand the content, and also sometimes add a dedicated rendering in the search results. More information.
The Article structured data (Article, NewsArticle, BlogPosting) could be a nice addition to Starlight Blog.
Describe the solution you'd like
One could optionally provide the right information, the structured data type definitions, in the frontmatter for instance (for the information not already available).
If most, or all, information is already there, Starlight Blog could update the head automatically to add this structured data
<script>
.Describe alternatives you've considered
I've implemented it in my own project. This is not the best implementation ever, but it gives clues about some potential solution "from outside": Open-reSource/openresource.dev@5c42ffd
Additional Context
No response
The text was updated successfully, but these errors were encountered: