Repository navigation
fix(next): render all authors in blog post byline (#2098) - #2129
basantjamwal wants to merge 2 commits into
Conversation
|
@basantjamwal thanks for this pr, could you solve the failing check? |
|
@yzeng25 Thanks for checking! I looked into the failing check — it's unrelated to this PR. Root cause: This PR only touches blog author rendering ( Happy to open a separate issue/PR to bump |
@basantjamwal , try include in here and see if this can fix the failed ci. |
|
@yzeng25 Done — bumped Verified locally that the three previously missing doc pages now sync and build correctly with this change. |
|
@yzeng25 The Since you'd like this included here, I'll keep working on it — but I don't want to guess-fix that test's logic without understanding it fully. Could you guide me on what should change? |
@basantjamwal I'm not familiar with this either, but i think some of the other Commiters/PMCs would be able to help you out. cc @guoqqqi @kayx23 @Baoyuantop PTAL |
Fixes: #2098
Changes:
Blog posts with more than one author only showed the first author in the byline (for example, the 3.16.0 release post showed only "Abhishek Choudhary": https://apisix.apache.org/blog/2026/04/07/release-apache-apisix-3.16.0/). The cause was in the Astro site:
next/src/lib/content.tsread onlyauthors[0]?.namefrom the front-matter, so the other authors were dropped before the layout rendered them.next/src/lib/content.tsauthorNames()helper that returns every author name fromauthoror from all entries ofauthors(object entries with aname, or plain strings).blogPost()now setsauthorto all names joined with commas (used by the byline and post cards) and adds a newauthorsarray toPost.authors?: string[]to thePostinterface.next/src/layouts/Article.astroBlogPostingJSON-LD now lists every author as its ownPerson. Posts without anauthorslist keep the previous fallbacks (a singlePerson, or the Apache APISIXOrganization).The change is limited to dated blog posts. Other post types are unchanged.
Screenshots of the change:
Before (live site): only the first author is shown.
After (local build,
npm run dev):Apr 7, 2026 · Abhishek Choudhary, Traky Deng · 8 min readTesting:
npm run devinnext/and checked/blog/2026/04/07/release-apache-apisix-3.16.0/and its/zh/version.Personentry per author in the JSON-LD.