SEO for Static Sites on Cloudflare Pages
Great content is worthless if search can't crawl it. Here's the full SEO stack this site actually uses, for approval and indexing.
Structured data
- Article + Review (with rating) → eligible for Google's star rich results
- ItemList → helps list pages appear as rich results
- Article (no rating)
- WebSite + Organization
Per-page meta
- Declare one canonical URL to avoid duplicate content
- Decides how the share card looks; pair it with a 1200×630 image
- On a multilingual site, declare zh/en so search engines know the language versions
Sitemap & robots
List every page in sitemap.xml, point robots.txt at it, submit via Search Console and request indexing. Keep it updated as content grows.
Extra for multilingual
We use single-URL with JS language switching. Separate /zh/ and /en/ URLs are cleaner for SEO but cost more to maintain. Pick by scale.
Pre-AdSense checklist
- Required; an EU domain also needs GDPR compliance and cookie consent
- Builds trust
- The core of approval — thin tool reviews rarely pass
- Helps crawling and link equity flow
Choosing structured data
- Tool reviews:
Article+Review, and it must includeratingValue, which makes it eligible for Google's star rich results. - Guides:
Article, without a rating. - Listing pages:
ItemList, which helps search engines understand the list structure. - Homepage:
WebSite+Organization。
Bulk injection approach
With many pages, hand-editing heads is impractical. Write an idempotent script that walks all HTML, injects OG/Twitter/hreflang/JSON-LD, and uses a marker comment to avoid duplicates. Re-run after edits.
Social share image
Add a 1200×630 OG image so shared links render proper cards. Generating it programmatically with Pillow keeps the style consistent.
Two i18n approaches
- Single URL + JS:Cheap to maintain, which suits a small site (as here).
- Separate URLs:Friendlier to SEO, but it doubles the work.
Either way, declare hreflang for all variants and ensure each language has enough content to avoid thin pages.
Real case: the SEO stack built once
At 24 articles the SEO stack was built once: OG / JSON-LD / hreflang sitewide, 14 reviews with Review ratings (eligible for star rich results), ItemList on listing pages, and a 30-URL sitemap submitted to Search Console. The whole stack runs off one idempotent script — re-run after adding content to sync everything.
- Efficiency key:Idempotency is the key — re-running never stacks duplicate tags, so after adding a page one run syncs the whole site.
- Next: keep adding content to 30+ posts, then request indexing in GSC's URL Inspection to speed up first inclusion.