Re: [PR] fix(seo): shorten title tag suffix to prevent truncation in search results [apisix-website]

2026-04-12 Thread via GitHub


Yilialinn merged PR #2017:
URL: https://github.com/apache/apisix-website/pull/2017


-- 
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]



Re: [PR] fix(seo): shorten title tag suffix to prevent truncation in search results [apisix-website]

2026-04-09 Thread via GitHub


Copilot commented on code in PR #2017:
URL: https://github.com/apache/apisix-website/pull/2017#discussion_r3061227019


##
website/src/pages/contribute.tsx:
##
@@ -43,7 +43,7 @@ const Contribute: FC = () => {
 
   
 
-  Good first issue - Apache APISIX® - Cloud-Native API Gateway and AI 
Gateway
+  Good first issue | Apache APISIX
 

Review Comment:
   The document `` was shortened, but this page’s other social meta 
titles in the same `` block (`og:title`, `twitter:title`, and 
`og:site_name`) still use the old long site title suffix. Update those meta 
values as well so social previews don’t conflict with the new title strategy.



##
website/src/pages/index.tsx:
##
@@ -46,6 +46,7 @@ const Index: FC = () => (
   
 
 
+  Apache APISIX® -- Cloud-Native API Gateway and AI Gateway
   ` block, the Open Graph description tag later in the file 
uses `name="og:description"`. Open Graph tags should use the `property` 
attribute (e.g., `property="og:description"`) or they may be ignored by 
crawlers.



-- 
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]



[PR] fix(seo): shorten title tag suffix to prevent truncation in search results [apisix-website]

2026-04-09 Thread via GitHub


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 `` to preserve full 
keyword-rich homepage title |
   | `website/src/pages/contribute.tsx` | Shorten hard-coded `` 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 
``) |
   
   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]