Skip to content

feat(seo): add Learning Center, hreflang, OG tags, and high-value content pages#2024

Merged
Baoyuantop merged 6 commits intomasterfrom
feat/seo-p0-learning-center
Apr 15, 2026
Merged

feat(seo): add Learning Center, hreflang, OG tags, and high-value content pages#2024
Baoyuantop merged 6 commits intomasterfrom
feat/seo-p0-learning-center

Conversation

@moonming
Copy link
Copy Markdown
Member

Summary

SEO P0 fixes to address critical gaps identified in a comprehensive audit comparing apisix.apache.org vs konghq.com keyword rankings.

Technical SEO

  • Global OG meta tags: Added og:site_name, og:type, og:image to docusaurus.config.js for consistent social sharing previews
  • Hreflang plugin: New config/hreflang.js Docusaurus plugin that injects hreflang alternate links (en/zh/x-default) and canonical URLs into all HTML pages during post-build
  • Chinese homepage title localization: Homepage title now uses translate() for proper i18n — Chinese locale renders "Apache APISIX - 开源云原生 API 网关与 AI 网关"
  • Homepage meta: Added og:title, og:url, and canonical link

Learning Center (new section)

  • New /learning-center/ route via Docusaurus blog plugin instance
  • Added "Learning Center" link to the main navigation bar (between Docs and Blog)
  • "What is an API Gateway?" — ~2,500-word authoritative article targeting api gateway (6,600/mo), what is an api gateway (720/mo), and 15+ keyword variants totaling ~10,000+ monthly searches. Currently APISIX ranks update the home page #25-88 for these keywords vs Kong's added languaeg switcher #3-9.
  • "What is API Management?" — ~2,500-word article targeting api management (1,900/mo), apim (2,400/mo), and 10+ variants totaling ~7,000+ monthly searches

AI Gateway Page Optimization

  • Rewrote title to target "what is an AI gateway" keyword (880/mo search volume)
  • Expanded meta description with AI gateway definition and MCP protocol mention
  • Added FAQPage structured data (JSON-LD) with 3 AI gateway Q&As for rich SERP results
  • Added canonical URL and og:url

Context

Keyword gap analysis shows Kong dominates through a systematic "Learning Center" content strategy — ~70+ keywords are served by dedicated educational pages at konghq.com/blog/learning-center/. APISIX currently routes most of these keywords to the homepage, which cannot compete with focused content. This PR establishes the Learning Center foundation and addresses the two highest-value content gaps.

Test plan

  • yarn build succeeds for the website package
  • Verify /learning-center/ route renders with both articles
  • Verify "Learning Center" appears in the top navigation bar
  • Verify /ai-gateway/ page has updated title and FAQPage structured data in source
  • Verify built HTML files contain hreflang tags (check any .html in build output)
  • Verify Chinese homepage has localized title
  • Verify /learning-center/what-is-an-api-gateway/ and /learning-center/what-is-api-management/ are accessible

…tent pages

Technical SEO fixes:
- Add global OG meta tags (og:site_name, og:type, og:image) to docusaurus.config.js
- Add hreflang plugin for en/zh language alternate links on all pages
- Add canonical URL injection via postBuild plugin
- Localize Chinese homepage title via i18n translate()
- Enhance homepage Head with og:title, og:url, and canonical link

Learning Center:
- Add new /learning-center/ route via Docusaurus blog plugin
- Add "Learning Center" to main navigation bar
- Create "What is an API Gateway?" article (~2500 words, targets 10K+ monthly searches)
- Create "What is API Management?" article (~2500 words, targets 7K+ monthly searches)

AI Gateway page optimization:
- Rewrite title for SEO: targets "what is an AI gateway" keyword
- Expand meta description with AI gateway definition and MCP support
- Add FAQPage structured data (JSON-LD) with 3 AI gateway FAQs
- Add canonical URL and og:url
Copilot AI review requested due to automatic review settings April 14, 2026 01:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a set of SEO-focused improvements for the APISIX website, including global social meta defaults, locale-aware alternate links, and a new “Learning Center” content section intended to capture high-value educational keywords.

Changes:

  • Adds a new /learning-center/ section via an additional Docusaurus blog plugin instance and links it in the main navbar.
  • Introduces a post-build hreflang/canonical injection plugin and expands OG/Twitter meta defaults.
  • Updates homepage and AI Gateway page metadata (title/description/OG/Twitter) and adds FAQPage JSON-LD to /ai-gateway/.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
website/src/pages/index.tsx Localizes homepage <title> and adds canonical/OG/Twitter tags
website/src/pages/ai-gateway.tsx Updates AI Gateway page SEO metadata and adds FAQPage JSON-LD
website/learning-center/what-is-api-management.md Adds a Learning Center article on API management
website/learning-center/what-is-an-api-gateway.md Adds a Learning Center article on API gateways
website/i18n/zh/code.json Adds zh translation for homepage meta title
website/docusaurus.config.js Adds Learning Center blog instance, hreflang plugin, and global OG defaults
config/navbar.js Adds “Learning Center” to top navigation
config/hreflang.js New post-build plugin injecting hreflang + canonical tags

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread website/src/pages/index.tsx
Comment thread website/src/pages/index.tsx
Comment thread website/src/pages/ai-gateway.tsx
Comment thread website/src/pages/ai-gateway.tsx
Comment thread config/hreflang.js
Comment thread website/src/pages/index.tsx
Comment thread website/src/pages/index.tsx
Comment thread website/src/pages/ai-gateway.tsx
Comment thread website/src/pages/ai-gateway.tsx
Comment thread website/learning-center/what-is-api-management.md Outdated
Comment thread website/src/pages/ai-gateway.tsx Outdated
Comment thread website/src/pages/ai-gateway.tsx Outdated
Yilialinn and others added 4 commits April 15, 2026 11:51
@Baoyuantop Baoyuantop merged commit 9a51e9c into master Apr 15, 2026
3 checks passed
@Baoyuantop Baoyuantop deleted the feat/seo-p0-learning-center branch April 15, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants