靜態網站如何以 IndexNow、網站地圖和 Schema.org 管理 600+ 個頁面的 SEO
Static Site SEO at Scale: IndexNow, Sitemaps, and Schema.org for 600+ Pages
一個涵蓋八種語言、超過 600 個頁面的靜態網站,透過 IndexNow、網站地圖及 Schema.org 結構化資料處理 SEO。每次正式部署後,網站會分批向 IndexNow 提交網站地圖中的網址;網站地圖亦為各語言版本加入 hreflang,並以關聯實體圖連結機構、服務和地點。文章稱新頁面可在數小時內出現在 Bing,整套做法沒有持續成本。
The SEO Stack
Our site generates 600+ pages across eight languages. Each page needs to be discoverable, correctly indexed with hreflang, and rich with structured data. Here is how we handle SEO at this scale on a fully static site.
Sitemaps with Hreflang
The sitemap is generated at build time from the same route registry the app uses. Every URL gets xhtml:link rel="alternate" entries for all eight locales plus x-default:
const alts = locales.map((a) =>
`<xhtml:link rel="alternate" hreflang="${a}" href="${abs(localizedHref(path, a))}"/>`
).join("");
Each URL also carries a <lastmod> date pulled from a per-page change log.
IndexNow: Instant Indexing
After every production deploy, we ping IndexNow with every URL in the sitemap. The script reads the built sitemap XML, extracts all <loc> entries, and posts them to Bing's IndexNow endpoint in batches of 10,000:
const res = await fetch("https://www.bing.com/indexnow", {
method: "POST",
headers: { "content-type": "application/json; charset=utf-8" },
body: JSON.stringify({
host: "www.navetteforyou.com",
key,
urlList: urlList.slice(i, i + 10000),
}),
});
Bing shares IndexNow pings with Yandex, Seznam, and Naver.
Schema.org Entity Graph
We build a connected entity graph:
-
Organization (
TravelAgency): one canonical@idshared with our sister site. - Website: linked to the organization.
-
Service per route:
TaxiServiceorTouristTripwith structuredOffernodes. -
Place:
Airport,City, and destination nodes linked byareaServed.
The @id references mean every page reinforces the same entity:
export const OPERATOR_ID =
"https://www.serenitymoroccotours.com/#organization";
llms.txt and AI Crawlers
We serve an llms.txt file for AI search engines and allow crawling by GPTBot, ClaudeBot, and PerplexityBot. As AI-powered search grows, being crawlable by these bots matters as much as traditional SEO.
Results
IndexNow pings after deploy mean new route pages appear in Bing within hours. Structured data earns rich results for transfer queries. Hreflang prevents duplicate content penalties across eight languages. All of this runs with zero ongoing cost.
Operated by Serenity Morocco Tours. Visit navetteforyou.com or WhatsApp +212 701 664 704.
來源:DEV Community · dev.to