5.2.7
Search and AI
What Vega gives search engines and AI tools, how to hide a page, and how to turn away AI training crawlers.
Vega is ready for search engines and AI search out of the box. This page lists what ships and what you can change.
Set your address first
The links in the sitemap, the feed, robots.txt, llms.txt, the share cards and the structured data are full addresses. They come from your site’s public address. Set the SITE_URL environment variable, or the site line in astro.config.mjs. See Deploy. Until you set it, a static build’s point at https://example.com, and an EmDash server’s use the address the server sees for each request, usually http://localhost.
What ships
Every public page has:
- A title and a description, a canonical link, and the tags that social sites read.
- A share card: an image made for the page, shown when someone shares the link.
- Structured data (JSON-LD). It tells search engines what the page is, in the schema.org format.
The site also has:
/sitemap.xml: every public page, sold homes included./rss.xml: the newest 50 blog posts, each with its excerpt and its tags. The feed never holds a post’s text./robots.txt: lets every crawler in and points at the sitemap./llms.txt: a plain list of the public pages. See llms.txt.
/saved/, /search/, the 404 page and the later pages of a list are not in the sitemap.
Search and share fields
A home, an agent, a neighborhood, a post and a page take optional fields for search results and shares:
seo:
title: "Title for search results and shares"
description: "One or two sentences."
image: ../media/share.webp # a local image, next to the others in content/media/
canonical: https://<your-domain>/original-post/
noindex: true # top-level: out of search engines, the sitemap and site search
Every field is optional. A missing one falls back to the entry’s own. The build stops on a blank title or description, or on a canonical that is not a full https:// or http:// address. In EmDash, each entry’s SEO panel has the same fields.
Structured data
Every public page names the site (a WebSite), published by your agency. The home page names the agency (a RealEstateAgent), with its name, tagline, phone, email, logo and office, from content/site.json.
Each page then says what it is:
- A home is a
RealEstateListing, with its price, its status, its photos, the day it was listed, and the place itself: its address, map point, beds, baths and size. - An agent’s page is a
RealEstateAgentat your agency, with their areas and license number. - A blog post is a
BlogPosting. - The about page is an
AboutPage, and Contact is aContactPage. - Homes, Neighborhoods, Agents, the blog and its tag pages are each a
CollectionPage. - A neighborhood, Sell and other pages, such as Privacy and Terms, are a
WebPage.
You do not need to fill in anything. The data comes from the content you already have.
Hide a page
Set noindex: true on a home, an agent, a neighborhood, a post or a page. It goes at the top level, not under seo:.
The page still builds and its link still works. But it asks search engines not to list it. It has no structured data, and it is left out of the sitemap, llms.txt, the feed and site search.
To leave an entry out of the site completely, use draft: true instead.
llms.txt
/llms.txt lists the site’s public pages in the llmstxt.org format. It starts with your site’s title and tagline. Then it groups the pages under the headings Pages, Homes, Neighborhoods, Agents and Blog. Each home has a line in plain words.
It is a map for a coding assistant or other AI tool that someone sends to your site, so the tool can see which pages you have. No tool has to read it, and it promises no results. It does not raise your search rank. Search engines do not use it to rank pages.
Hidden pages are never in it. It never holds a page’s full text.
Block AI training crawlers
By default, robots.txt lets every crawler in. Some crawlers collect pages to train AI models. To ask them to stay off your site, open src/pages/robots.txt.ts and change the line at the top:
export const AI_TRAINING = false;
robots.txt then adds a group that disallows five training crawlers. TRAINING_CRAWLERS in packages/theme-core/src/feeds.ts lists them. Only training is turned away. The crawlers that answer searches stay allowed, so your agency still shows in search results and in AI search answers.
What robots.txt cannot do
robots.txt is a request, not a lock. Well-known crawlers follow it, but nothing makes a crawler read it.
- It does not remove pages a crawler has already collected.
- Anyone can still open your public pages.
To block crawlers for real, use your host’s bot settings. Cloudflare, for example, can block AI crawlers at its edge.
Dates
A blog post can have an optional updated date, after its date:
---
title: How we price a house
date: 2026-09-18
updated: 2026-10-12
---
When updated is on a later day than date, the post shows “Updated October 12, 2026”. The sitemap and the structured data use it as the post’s last change. Leave it out, and they use date. A home’s last change in the sitemap is its latest date: listed, a price change or sold.
EmDash
With the EmDash source, everything on this page works the same way. A few notes:
- The SEO panel’s title, description and image fill the page’s title, description and share tags. Its “Hide from search engines” switch works as
noindex: truedoes. Its “Canonical URL” works as thecanonicalfield does. - The theme owns
robots.txtand the sitemap, so EmDash’s robots setting in the admin does not apply. Editsrc/pages/robots.txt.tsinstead. On a server build,robots.txtalso keeps crawlers out of/_emdash/.