moonming opened a new pull request, #2017:
URL: https://github.com/apache/apisix-website/pull/2017
## Summary
Shorten the site title from 57 characters to 13 characters so page titles
are no longer truncated in Google search results.
## Problem
The site title (`siteConfig.title`) was:
```
Apache APISIX® -- Cloud-Native API Gateway and AI Gateway
```
This 57-character string is appended to every page title via Docusaurus'
default template: `{pageTitle} | {siteTitle}`. Since Google displays ~60
characters for title tags, virtually **every page title was truncated**:
| Page | Title tag (chars) | Google shows |
|------|:-----------------:|-------------|
| Getting Started | 73 | `Getting Started \| Apache APISIX® -- Cloud-Nat...`
|
| limit-count plugin | 78 | `limit-count \| Apache APISIX® --
Cloud-Native...` |
| Blog post | 80+ | `Free tier API with Apache APISIX \| Apache API...` |
Truncated titles hurt click-through rates (CTR) because users cannot see the
full page title or brand name.
## Changes
| File | Change |
|------|--------|
| `website/docusaurus.config.js` | `title` -> `'Apache APISIX'` |
| `doc/docusaurus.config.js` | `title` -> `'Apache APISIX'` |
| `blog/en/docusaurus.config.js` | `title` -> `'Apache APISIX'` |
| `blog/zh/docusaurus.config.js` | `title` -> `'Apache APISIX'` |
| `website/src/pages/index.tsx` | Add explicit `<title>` to preserve full
keyword-rich homepage title |
| `website/src/pages/contribute.tsx` | Shorten hard-coded `<title>` suffix |
| `website/src/pages/ai-gateway.tsx` | Update `og:site_name` to match |
## Result
| Page | Before | After |
|------|--------|-------|
| Homepage | `Apache APISIX® -- Cloud-Native API Gateway and AI Gateway` |
`Apache APISIX® -- Cloud-Native API Gateway and AI Gateway` (unchanged,
explicit) |
| Getting Started | `Getting Started \| Apache APISIX® -- Cloud-Nat...` |
`Getting Started \| Apache APISIX` (31 chars) |
| Blog post | `Free tier API with Apache APISIX \| Apache API...` | `Free
tier API with Apache APISIX \| Apache APISIX` (49 chars) |
| AI Gateway | `APISIX AI Gateway - LLM Proxy...` | unchanged (has its own
`<title>`) |
The `tagline`, `meta description`, and `navbar.title` are all unchanged.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]