5.6.6
Search and AI
What Vesper gives search engines and AI tools, how to hide a page, and how to turn away AI training crawlers.
Vesper 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 post, a project or a page can set its own with the
seo:fields. See Content. - 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 canonical link points at the page’s own address. It tells search engines which address is the main one. A canonical in an entry’s seo: fields, or the “Canonical URL” in its EmDash SEO panel, replaces it. The structured data then uses that address too. Use it when a post first ran somewhere else.
The site also has:
/sitemap.xml: every public page./rss.xml: the newest 50 posts, each with its summary and category. 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.
Structured data
Every page names the site (a WebSite) and you (a Person). You have your name, role, photo, bio and links, from content/site.json.
Each page then says what it is:
- A post is a
BlogPosting, with its title, description, image and dates. Its author is you. A post in a series is part of that series. - A project is a
CreativeWork. - The about page is a
ProfilePageabout you. - Projects, Articles and each category and tag page are a
CollectionPage. - Now, Uses, Speaking and other pages 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 post, a project or a page. It goes at the top level, not under seo::
---
title: Notes from a slow week
noindex: true
---
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. A page you turn off in src/theme.config.ts is left out of the sitemap and llms.txt too. See Looks.
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 by kind, under the headings Pages, Articles, Projects, Categories and Tags. Pages holds the main pages, such as About. Each line has the page’s name, its full address and, where it has one, its description or summary. The main pages go by short names, such as Projects and About, instead of their headlines.
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 this group:
User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: CCBot
User-agent: Applebot-Extended
Disallow: /
These are the training crawlers of OpenAI, Anthropic, Google, Common Crawl and Apple. Only training is turned away. The crawlers that answer searches stay allowed, such as Googlebot, Bingbot, OAI-SearchBot, Claude-SearchBot and PerplexityBot. So your site still shows in search results and in AI search answers.
Google-Extended does not change how Google Search lists your site.
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.
- When a person asks an AI chat tool to read one of your pages, the tool fetches it for that person, like a browser. Such fetches may not read
robots.txtat all. - 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 post can have an optional updated date, after its date:
---
title: A darkroom in a closet, for $180
date: 2026-07-18
updated: 2026-08-02
---
When updated is on a later day than date, the post’s meta line shows “Updated August 2, 2026” after the date. The sitemap and the structured data use it as the post’s last change. Leave it out, and they use date. In EmDash, it is the post’s “Last updated” field.
EmDash
With the EmDash source, everything on this page works the same way. A few notes:
- The theme writes the structured data. EmDash’s own site block is off, so each page has one
WebSite, not two. - Plugins that add their own structured data still work.
- 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/.