Website & app builders · Publishing platform · Checked 2026-10-19
Ghost SEO for ChatGPT, Perplexity & AI search
Built your site with Ghost? Here is what Ghost's own documentation says about how AI crawlers see it, and the exact settings for robots.txt, llms.txt, structured data and your sitemap. Sources are listed at the bottom.
Is your Ghost site visible to AI? Check it free
Paste your live URL. RankRoot checks your robots.txt rules for the ChatGPT, Perplexity and Claude crawlers, whether your page text is in the HTML without JavaScript, and your llms.txt and JSON-LD.
Free, no signup. 20+ checks across ChatGPT, Perplexity, Claude, Google AI and AI agents.
How Ghost delivers pages to crawlers
Ghost's theme docs say templates are made of HTML and Handlebars helpers, and in production the template files are loaded and cached by the server, so readers and crawlers get the page as HTML. Themes that pull content in with JavaScript, or a headless Ghost setup with a separate front end, can change that, so check your page source or run RankRoot's audit.
Why it matters: many AI crawlers don't run JavaScript. If your text only appears after scripts run, they may see an empty page.
Make your content readable without JavaScript
- Make sure your site isn't private. Ghost's setup guide says that when private site mode is on (Settings > Membership > Access), all search engine optimization features are switched off.
- Ghost adds canonical tags, social cards and structured data to posts and pages on its own, so you mostly need to fill in good titles and excerpts.
- Members-only and paid posts: Ghost's AI search feature includes only their public title and excerpt, so put what you want AI tools to quote in public posts or pages.
- Run the free audit on your homepage and a post to confirm what crawlers get.
robots.txt: let AI search crawlers in
- Ghost serves a default
robots.txtthat points crawlers to your sitemap. Openyourdomain.com/robots.txtto see yours. - To change it, add your own
robots.txtfile to the root folder of your theme (next topackage.json), zip the theme and upload the new version. Ghost's docs say a theme'srobots.txtoverrides the default. - Keep the
Sitemap:line and the Disallow lines from the default file in your version, since your file replaces it completely. - On Ghost(Pro), uploading a custom theme needs the Creator plan or higher, according to Ghost's help center.
User-agent: OAI-SearchBot Allow: / User-agent: ChatGPT-User Allow: / User-agent: PerplexityBot Allow: / User-agent: Claude-SearchBot Allow: / User-agent: Claude-User Allow: / User-agent: * Allow: / Sitemap: https://yourdomain.com/sitemap.xml
Which bots to allow or block: robots.txt for AI crawlers and the AI crawler list.
Add llms.txt
- Ghost has this built in. In the admin, go to Settings > Meta data and turn on the AI search (GEO) option. Ghost's changelog (July 16, 2026) says it's off by default on existing sites.
- When it's on, Ghost publishes
llms.txtat the root of your domain, plusllms-full.txt, and serves a Markdown version of any public post when you add.mdto its URL. - Only public content is included. Members-only and paid posts show their public title and excerpt, and private sites don't serve these files at all.
- Self-hosted Ghost needs a recent version for this feature. Update, then open
yourdomain.com/llms.txtand check it with the llms.txt validator.
Add JSON-LD and head code
- Set the site-wide title, description and search and social metadata in Settings > General (Title & description, Meta data).
- Each post and page has its own meta title, description and social card fields in the post settings menu. Ghost falls back to the post content if you leave them blank.
- Ghost already adds structured data to every post and page, so check your page source before adding more. To add extra JSON-LD or other tags, use Settings > Code injection > Site header, which Ghost places inside
<head>, or the per-post code injection in the editor sidebar.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Your brand",
"url": "https://yourdomain.com/",
"sameAs": ["https://www.linkedin.com/company/your-brand"]
}
</script>Sitemap
- Ghost creates and updates an XML sitemap automatically and links it from
robots.txt. Ghost's own example issitemap.xmlat the site root. - Submit it in Google Search Console and Bing Webmaster Tools. If you replace
robots.txtin your theme, keep theSitemap:line.
Common mistakes
- Leaving private site mode on after launch. Ghost turns off all SEO features while it's on.
- Expecting llms.txt without turning it on. The AI search option is off by default on existing sites.
- Uploading a theme
robots.txtthat drops the default Disallow and Sitemap lines. Your file replaces Ghost's completely. - Putting your best explainer content behind a members-only or paid wall. AI tools only get its title and excerpt.
Rather have this done for you?
The AI Visibility Employee looks after AI visibility for your Ghost site every month, fully by email, no calls:
- Weekly tracking of how ChatGPT, Perplexity, Gemini and Claude mention you for your buyers' questions
- 4 answer-ready pages a month, published through our WordPress plugin or a GitHub pull request, or delivered as drafts you add in Ghost
- Ongoing llms.txt, robots.txt and JSON-LD fixes wherever your setup allows them, and a monthly report
$149/month, cancel anytime. The first 10 customers pay $99/month with code FOUNDING10.
See the AI Visibility EmployeeFAQ
Does Ghost support llms.txt?
Yes. Turn on the AI search option in Settings > Meta data. Ghost then serves llms.txt and llms-full.txt at your domain root and Markdown versions of public posts at their URL plus .md.
How do I edit robots.txt in Ghost?
Add a robots.txt file to the root of your theme and upload the new theme version. It overrides Ghost's default. On Ghost(Pro) custom themes need the Creator plan or higher.
Is my Ghost site visible to ChatGPT?
Ghost themes are rendered by the server, so public content is in the HTML. Check that the site isn't private, that robots.txt allows OAI-SearchBot, and run the free audit to confirm.
Does Ghost add structured data?
Yes. Ghost's SEO guide says it includes structured data in all posts and pages automatically, along with canonical tags and Open Graph and X card tags.
Sources
- Ghost changelog: Optimize your site for AI search (read 2026-10-19)
- Ghost help: Modifying robots.txt (read 2026-10-19)
- Ghost help: SEO in Ghost (read 2026-10-19)
- Ghost help: Setting up your Ghost site (read 2026-10-19)
- Ghost tutorial: How to use Code Injection (read 2026-10-19)
- Ghost developer docs: Theme structure (read 2026-10-19)
- Ghost changelog: XML sitemaps (read 2026-10-19)
Facts checked against Ghost's documentation on 2026-10-19. RankRoot is not affiliated with Ghost. Settings move around; if a step has changed, email rankroot.support@proton.me.
Other builders
Lovable · Bolt.new · Replit · v0 · Framer · Webflow · Wix · Squarespace · Shopify · WordPress · GitHub Pages · Carrd · Hostinger AI Builder · Notion Sites · Netlify · Vercel · Cloudflare Pages & Workers