5.1.7
Search and AI
What Groundcrew gives search engines and AI tools, how area pages help local search, how to hide a page, and how to turn away AI training crawlers.
Groundcrew 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 links point at https://example.com, and an EmDash server’s use the address the server sees for each request.
What ships
Every public page has:
- A title and a description, a canonical link, and the tags that social sites read. The layout adds your site’s name to each title.
- 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./rss.xml: the blog posts, newest first, each with its description 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.
/search/, the 404 page and the later pages of a list are not in the sitemap. A part you turn off leaves no page in the sitemap, the feed, llms.txt or the share cards. See Turn parts off.
Search and share fields
A service, an area, a project, 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: its title, its summary or excerpt, and its photo. 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.
An entry whose canonical points at another address still has its page, but it is left out of the sitemap, llms.txt and the share cards.
Structured data
Every public page names the site (a WebSite), published by your business. It also names the business itself, as a LocalBusiness of your trade’s type. The type follows the preset:
| Preset | Type |
|---|---|
construction |
GeneralContractor |
landscaping |
HomeAndConstructionBusiness |
plumbing |
Plumber |
cleaning |
LocalBusiness |
The business node comes from content/site.json: its name, tagline, phone, email, logo, address, the year it was founded and your social profiles. Each one you leave out is left out of the data too. A social link to a site’s home page is not a profile, so it is left out.
- Opening hours: each row of
business.hourswithdays,opensandclosesbecomes anopeningHoursSpecification. A row with atextin place of times, such as “Emergency calls only”, shows on the site but is not in the data. - Service area:
servedPlacesbecomes the business’sareaServed. It stays when area pages are off.
A service’s page adds a Service, provided by your business, over the towns that page lists. While the page shows a “from” price, the Service carries it as an offer in US dollars.
The data never holds a star rating for the business. Search engines do not accept a site’s own reviews as a rating for the business itself.
You do not need to fill in anything. The data comes from the content you already have.
Area pages
With the areas part on, each town you serve gets its own page at /areas/<slug>/. Its title names your work and the town, such as “Plumbing and drain service in Worthington, OH”, from business.workNoun and the area. That is the phrase people type when they look for a local trade. Write each area’s own intro, so no two area pages say the same thing. See An area.
With areas off, the town names stay as plain text, and servedPlaces still tells search engines where you work.
Site search
The site search at /search/ covers services, areas, projects, posts and pages. A static build indexes the built pages with Pagefind after the build, so an off part and a hidden page have no entry. With EmDash, the page asks EmDash on each request and drops every hit of an off part.
EmDash’s own search API (/_emdash/api/search) still answers for published entries of a part that is off. See EmDash search.
Hide a page
Set noindex: true on a service, an area, a project, 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, use draft: true instead. A draft service, area, project, post or page has no page, no link and no entry anywhere. The about page is the one exception: its route is part of the theme, so with content/pages/about.md a draft, /about/ still shows the theme’s own words and stays in the sitemap. To hide it, use noindex: true on that page.
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, Services, Service area, Projects and Tips and news.
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 business 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: When to replace a water heater
date: 2026-09-18
updated: 2026-10-12
---
The sitemap uses the later of the two as the post’s last change. A page in content/pages/ takes updated too.
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/. - A switch change shows in the sitemap, the feed and
llms.txton the next request, with no rebuild.