DEV Community

wei lu
wei lu

Posted on • Originally published at luw8072-gif.github.io

SEO for GitHub Pages: How to Get Indexed on Google (Solo Dev Guide)

Built a product on GitHub Pages? No one will find it without SEO. Here is how to fix that.

6 Things Every GitHub Pages Site Needs

  1. Meta tags — description, keywords, OG tags, Twitter card
  2. Schema markup — JSON-LD for rich snippets
  3. Sitemap.xml — list every page, submit to engines
  4. Robots.txt — allow crawling, point to sitemap
  5. Canonical URLs — prevent duplicate content issues
  6. Cross-linking — every page links to every other page

Submit to 5 Search Engines

curl https://www.google.com/ping?sitemap=YOUR_URL
curl https://www.bing.com/webmasters/ping?sitemap=YOUR_URL
# Also: Baidu, Yandex, 360
Enter fullscreen mode Exit fullscreen mode

Content is King

Technical SEO gets you indexed. Great content gets you ranked. Write 1500+ word articles targeting long-tail keywords.

I built this entire setup in 24 hours across 13 pages. All open source at github.com/luw8072-gif.

Top comments (0)