SEO·AEO·GEO

SEO by platform · Updated

Hugo SEO: static sites that crawlers can actually read

Hugo is a static site generator. It writes HTML files at build time, so Googlebot and AI search crawlers receive the content without running JavaScript. SEO on Hugo is theme and config work: titles, canonicals, sitemap.xml, robots.txt and not shipping a JS-only overlay on top.

Aalhad, Founder, SEO·AEO·GEO

Founder, SEO·AEO·GEO

Builds SEO·AEO·GEO and writes the crawler, schema, and citation research published here.

Run these checks on your own site, free.

Free score in about 20 seconds. No sign-in for your first site.

How Hugo serves pages to crawlers

Hugo builds static HTML. Crawlers get the full page from the file or CDN. Client-side search or comments are extras; the article body should already be in the HTML.

Config and theme

  1. Set baseURL in hugo.toml / config.yaml to the canonical https host.
  2. Enable the built-in sitemap (on by default) and link it from robots.txt.
  3. Use title, description and canonical in the theme's head partial. Hugo's .Permalink and .Title are the usual sources.
  4. One H1 per page, from the content title, not a second one in the chrome.

AI crawlers

Static HTML is an advantage: OAI-SearchBot and PerplexityBot can extract the article. The usual failure is a CDN in front of the Hugo host (Netlify, Cloudflare Pages, GitHub Pages + Cloudflare) that challenges bots. Allow the AI search crawlers; blocking GPTBot is a training choice and does not affect ChatGPT search.

Run the GEO check on a production URL after deploy. A localhost hugo server is not crawlable from outside.

Check it on your own site

What the free audit tests for this

  • Raw HTML visibility
  • sitemap.xml
  • Title tag
  • Canonical

One URL, about 20 seconds. You see the score straight away; a free account shows the result of every check and the exact fix for the top issue.

Audit your website free

FAQ

Does Hugo need a prerenderer?+

No. The HTML is already built. Prerendering is for client-rendered apps.

Where does the sitemap live?+

Hugo writes sitemap.xml at the site root unless you disabled it. Add Sitemap: https://example.com/sitemap.xml to robots.txt.

Sources

  1. Hugo sitemap templates — Hugo Docs
  2. Configure Hugo — Hugo Docs

Want us to do it for you? We audit the pages that matter, make the on-page fixes and re-check each one.