SEO
SEO Defaults for Static Sites: What to Set Up Before You Deploy
SEO Defaults for Static Sites: What to Set Up Before You Deploy
Static sites have a reputation for clean, fast SEO — and that reputation is deserved. But only when the basics are set up correctly before you deploy. A fast site with broken meta tags still ranks poorly.
This guide covers the SEO defaults every static site should have before going live, and how a static site generator like GAX handles them.
1. Title and Description on Every Page
Every page needs a unique < title > and < meta name="description" >. These should come from frontmatter, not be hardcoded into the layout.
title: "SEO Defaults for Static Sites"
description: "Static sites rank well when the basics are done right."
If your SSG does not generate these from frontmatter, you will eventually forget to update them. A common result is that every page shares the same generic title — one of the most frequent SEO mistakes on static sites.
Keep titles under about 60 characters and descriptions around 150–160 characters so they display fully in search results.
2. Canonical URLs
A canonical tag tells search engines which URL is the primary version of a page.
link rel="canonical" href="https://example.com/blog/article1/"
This matters when your site is reachable through more than one URL — with or without trailing slash, with or without www, or through a staging domain. Without a canonical, duplicate content can split ranking signals.
3. Sitemap and Robots.txt
A sitemap.xml lists all your pages for search engines. A robots.txt tells crawlers what they can and cannot index.
Both should be generated automatically at build time — not written by hand and forgotten. A hand-maintained sitemap goes stale the moment you publish a new page.
4. Open Graph and Social Tags
When someone shares your page on social media, the preview should show a title, description, and image. That comes from Open Graph tags:
meta property="og:title" content="..."
meta property="og:description" content="..."
meta property="og:image" content="/images/banner.jpg"
Without these, shared links often look broken and get less engagement.
5. Clean Semantic HTML
Search engines read structure. Use h1 once per page, h2 for sections, h3 for subsections. Use article, section, nav, and main where they fit.
A theme that outputs a div soup makes it harder for crawlers to understand the page — and harder for screen readers to read it.
6. Fast, Static Output
A static site is already fast. Make sure you are not undoing that with:
- Large, uncompressed images
- Render-blocking JavaScript
- Unminified CSS
- Fonts loaded from slow external sources
A static site that loads quickly will often outrank a slow site with the same content.
What GAX Includes by Default
GAX generates the sitemap, RSS feed, and robots.txt on every build. Title, description, and canonical tags come from frontmatter. The layout uses semantic HTML — header, main, article, footer — not a div soup.
That does not guarantee rankings, but it removes the most common technical SEO mistakes before you start writing.
SEO Checklist Before Deploy
- Every page has a unique title and description
- Canonical tag points to the production URL
sitemap.xmlandrobots.txtare generated- Open Graph image and description are set
- Heading hierarchy is correct (
h1once per page) - Images are compressed
- No render-blocking scripts
FAQ
Do static sites rank better than dynamic sites?
Not automatically. Static sites have an advantage in speed and simplicity, but ranking still depends on content quality, structure, and backlinks. The SEO defaults above are what make the speed advantage count.
Does GAX generate a sitemap automatically?
Yes. GAX writes sitemap.xml, rss.xml, and robots.txt on every build. No plugin or configuration is required.
How do I set a canonical URL in GAX?
Add a canonical field in the page frontmatter. GAX outputs it as a tag.
Can I use GAX with Google Search Console?
Yes. After deploying, submit your sitemap.xml URL in Google Search Console to help search engines discover your pages.
Where can I get an SEO-ready theme?
GAX Pro themes ship with SEO defaults built in. Browse the catalog at hockeycomputindo.com or get the Pro theme on Gumroad.
Next Steps
Latest Guides
Jekyll Premium Theme: SEO-Ready Static Site for Content Sites
Premium Jekyll themes for blogs, docs, and content sites. SEO defaults, semantic HTML, GitHub Pages compatible, one-time purchase. From HockeyComputindo catalog.
Jekyll Premium Theme: SEO-Ready Static Site for Content Sites →
Eleventy Premium Theme: Fast Static Sites Without Node Bloat
Premium Eleventy themes for blogs, docs, and content sites. 11ty output, SEO defaults, semantic HTML, one-time purchase. From HockeyComputindo catalog.
Eleventy Premium Theme: Fast Static Sites Without Node Bloat →