Add compact author meta bar and colored tag pills to blog post content page#1643
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@copilot can we make the user name and min read part in the center ? rest things are fine |
|
just need to alging the author to the center |
|
@copilot align this to center. and on the reading time UI need fix it need to appear like below. |
|
@sanjay-kv also there is some bug with the changes it remove the two author feature : |
Done in commit
|
|
@copilot there is a bug with the changes it removed the two author feature . only one author name is visible there. |
Fixed in commit |


Blog post pages showed a verbose author card layout (date + stacked author rows with social links) and no tags. This brings the display in line with the reference design: a compact inline meta bar with all author avatars and GitHub handles, date, reading time, and colored tag pills — matching what the blog listing cards already show. The meta bar and tag pills are center-aligned under the title, and the reading time is displayed as a styled pill badge.
Type of Change
Changes Made
src/theme/BlogPostItem/Header/index.tsx— New Docusaurus swizzle wrapper forBlogPostItem/Header:BlogPostItemHeaderTitle, then injects a compact meta bar + tag pills (replaces default Docusaurus date/authors section)metadata.authors— each rendered as a 32px circular avatar +@github_handle(linked) chip; multiple authors are separated by&metadata.authors[0]was used, causing posts with multiple authors (e.g.authors: [sowmiya-v, sanjay-kv]) to show only the first authorsrc/theme/BlogPostItem/Header/styles.module.css— Scoped styles for the meta row and tag pills:align-items: center/justify-content: center) so avatars, handles, date, reading time, and tags are horizontally centered under the titlejustify-content: center)--ifm-color-emphasis-100), and border (--ifm-color-emphasis-300) — matching the reference design.authorsPartand.authorSepclasses for the multi-author flex layout<480pxDependencies
No new dependencies. Uses existing
@docusaurus/plugin-content-blog/clienthooks andsrc/utils/authors.ts.Checklist
npm run buildand attached screenshot(s) in this PR.