Visitar URL original
Explicitly specify blog post cover images by parlough · Pull Request #13919 · flutter/website · GitHub
Skip to content

Explicitly specify blog post cover images - #13919

Open
parlough wants to merge 15 commits into
mainfrom
feat/blog-cover-images
Open

parlough wants to merge 15 commits into
mainfrom
feat/blog-cover-images

Conversation

@parlough

Copy link
Copy Markdown
Member

No description provided.

@flutter-website-bot

flutter-website-bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit f0b5948):

https://flutter-dev-230821--www-pr13919-feat-blog-cover-images-ozo606fd.web.app

@flutter-website-bot

flutter-website-bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Staged preview of the updated docs.flutter.dev site (updated for commit 745d2f4):

https://flutter-docs-prod--docs-pr13919-feat-blog-cover-images-2v0blgwj.web.app

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Btw, I ran into something today. Craig doesn't want his current post to contain a subtitle but because the subtitle is implemented as a description, it's required. Not ideal...

@sfshaza2 sfshaza2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know it's still in draft but lgtm

@parlough
parlough marked this pull request as ready for review October 9, 2026 14:36
@parlough
parlough requested review from a team and abdallahshaban557 as code owners October 9, 2026 14:36

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the blog post image metadata from a simple image string to a structured coverImage object across all blog posts and layouts. It introduces a new ContentImage component to handle rendering with optional captions, updates layout components to support the new metadata, and adds validation logic during post parsing and data processing. A review comment identified a bug in the coverImage metadata validation logic in models.dart, where a non-string alt value triggers an incorrect error message when showInPost is true, and suggested a more readable if-else alternative.

Comment thread packages/site_shared/lib/src/blog/models.dart
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

Successfully merging this pull request may close these issues.

3 participants