5.4.6
Search and AI
What Lodestar gives search engines and AI tools, how to hide a page, and how to turn away AI training crawlers.
Lodestar 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 canonical link points at the page’s own address. It tells search engines which address is the main one. In EmDash, an entry’s SEO panel can point it somewhere else. See EmDash.
The site also has:
/sitemap.xml: every public page./rss.xml: the newest 50 Insights posts, each with its excerpt. 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 your firm (an Organization). The firm has its name, legal name, logo, email, phone, address and social links, from content/site.json. With no logo, it has no logo field. The share card is never used as the logo.
Each page then says what it is:
- An Insights post is a
BlogPosting, with its title, excerpt, image and dates. Its author is the team member inauthor, as aPerson. With no author, it is the firm. - A service is a
Service, provided by the firm. A service with its own FAQ is also anFAQPage. /pricingis anFAQPage, with the questions incontent/faqs.json.- A case study is a
CreativeWork. - A team member’s page is a
ProfilePageabout aPersonwho works for the firm. - About is an
AboutPage, and Contact is aContactPage. - Services, Case studies, Insights, Team and Industries are each a
CollectionPage. - Other pages, such as Privacy and the guide, are a
WebPage.
An FAQPage holds only the questions the page shows. A service with no FAQ has none.
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 service, a case study, a team member, a post or a page:
---
title: A service we no longer offer
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.
llms.txt
/llms.txt lists the site’s public pages in the llmstxt.org format. It starts with your firm’s name and tagline. Then it groups the pages by kind. Pages comes first, with the main pages, such as About and Contact. Then each kind has its own heading, such as Services, Case studies, Insights and Team. Each line has the page’s title, its full address and, where it has one, its summary.
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 firm 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
An Insights post can have an optional updated date, after its date:
---
title: A scorecard on one page
date: 2026-08-10
updated: 2026-09-14
---
When updated is on a later day than date, the post shows “Updated September 14, 2026” under the byline. 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” replaces the page’s canonical link, and the structured data uses that address too. - 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/.