From ee057a9bcac2514955cca2437f3f2ab86bc47c41 Mon Sep 17 00:00:00 2001 From: Basant_Jamwal Date: Thu, 24 Sep 2026 02:32:01 +0530 Subject: [PATCH 1/2] fix(next): render all authors in blog post byline (#2098) --- next/src/layouts/Article.astro | 2 +- next/src/lib/content.ts | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/next/src/layouts/Article.astro b/next/src/layouts/Article.astro index ef6c72bcdb0e4..8b88758460bad 100644 --- a/next/src/layouts/Article.astro +++ b/next/src/layouts/Article.astro @@ -45,7 +45,7 @@ const jsonLd = [{ description: post.description, ...(post.dateStr ? { datePublished: post.dateStr } : {}), image: post.image, - author: post.author ? { '@type': 'Person', name: post.author } : { '@type': 'Organization', name: 'Apache APISIX' }, + author: post.authors?.length ? post.authors.map((name) => ({ '@type': 'Person', name })) : post.author ? { '@type': 'Person', name: post.author } : { '@type': 'Organization', name: 'Apache APISIX' }, publisher: { '@type': 'Organization', name: 'Apache APISIX', url: SITE }, mainEntityOfPage: `${SITE}${locale === 'zh' ? '/zh' : ''}${path}`, }, ...jsonLdExtra]; diff --git a/next/src/lib/content.ts b/next/src/lib/content.ts index a076f5b588d94..c4242ffe9c9f2 100644 --- a/next/src/lib/content.ts +++ b/next/src/lib/content.ts @@ -71,6 +71,7 @@ export interface Post { tags: string[]; image?: string; author?: string; + authors?: string[]; /** Stable source identity used to pair real EN/ZH blog translations. */ translationKey?: string; mod: MdModule; @@ -145,6 +146,7 @@ function blogPost(path: string, mod: MdModule, locale: Locale): Post | null { // normalizeUrl collapses it; see the 2021-06-03 firsthand-experience post). const slug = (fmSlug ?? name).replace(/^\/+/, ''); const urlPath = slug.includes('/') ? slug : `${y}/${mo}/${d}/${slug}`; + const authors = authorNames(mod.frontmatter); return { url: `${localePrefix(locale)}/blog/${urlPath}/`, slug: urlPath, @@ -155,8 +157,8 @@ function blogPost(path: string, mod: MdModule, locale: Locale): Post | null { dateHuman: humanDate(new Date(`${y}-${mo}-${d}T00:00:00Z`), locale), tags: toTags(mod.frontmatter), image: mod.frontmatter.image, - author: mod.frontmatter.author - ?? (Array.isArray(mod.frontmatter.authors) ? mod.frontmatter.authors[0]?.name : undefined), + author: authors.length ? authors.join(', ') : undefined, + authors, translationKey: String( mod.frontmatter.translationKey ?? mod.frontmatter.translation_key @@ -166,6 +168,14 @@ function blogPost(path: string, mod: MdModule, locale: Locale): Post | null { }; } +function authorNames(fm: any): string[] { + if (fm.author) return [String(fm.author)]; + if (!Array.isArray(fm.authors)) return []; + return fm.authors + .map((a: any) => (typeof a === 'string' ? a : a?.name)) + .filter(Boolean); +} + function flatPost(path: string, mod: MdModule, urlBase: string, locale: Locale): Post { const slug = mod.frontmatter.slug ?? baseName(path); const date = mod.frontmatter.date ? new Date(mod.frontmatter.date) : new Date(0); From d6c535f7e33f781de465d2133cf830d89ffa57b9 Mon Sep 17 00:00:00 2001 From: Basant_Jamwal Date: Thu, 8 Oct 2026 19:31:18 +0530 Subject: [PATCH 2/2] chore: bump apisix-versions to 3.19 --- config/apisix-versions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/apisix-versions.js b/config/apisix-versions.js index ca2efa7198e83..6a0d1e0047d87 100644 --- a/config/apisix-versions.js +++ b/config/apisix-versions.js @@ -3,7 +3,7 @@ /** * @type {Array} version list */ -const versions = ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15', '3.16', '3.17', '3.18']; +const versions = ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15', '3.16', '3.17', '3.18', '3.19']; /** * @type {Array} LTS version list