Skip to main content
Metadata covers everything that goes in <head> and anything that helps search engines and social platforms understand your site — titles, descriptions, canonical URLs, Open Graph tags, and sitemaps.

Site URL

Set your canonical site URL in the Aero config. This powers sitemaps, canonical links, and import.meta.env.SITE:
aero.config.ts
Once set, the URL is available in two places:

Head tags in layouts

Manage <head> content in your base layout. Use props to let pages customize their title and description:
client/layouts/base.html
Pages pass metadata as props through the layout:
client/pages/about.html

Sitemap

When site.url is set, Aero automatically generates sitemap.xml in dist/ during a static build. It includes all pre-rendered routes as absolute URLs and excludes the 404 page. Link to it from your layout’s <head>:

robots.txt

Place a robots.txt in the public/ directory. It is copied to dist/ unchanged:

Favicon

Place favicon files in public/ and reference them in your layout’s <head>: