<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, andimport.meta.env.SITE:
- aero.config.ts
- vite.config.ts
aero.config.ts
| Context | Access |
|---|---|
| Build scripts and templates | Aero.site.url |
| Client scripts | import.meta.env.SITE |
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
client/pages/about.html
Sitemap
Whensite.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 arobots.txt in the public/ directory. It is copied to dist/ unchanged:
Favicon
Place favicon files inpublic/ and reference them in your layout’s <head>: