
jekyll-llms-generator
A Jekyll plugin that builds a fresh llms.txt file every time your site builds, so AI models always see your current content.
jekyll-llms-generator is a Jekyll generator plugin that writes an /llms.txt file every time your site builds. Set it up once and you’re done. Your llms.txt keeps up on its own as you publish new posts, projects, and pages.
What is llms.txt?
llms.txt is a new standard that lets you publish a structured, plain-text summary of your site for AI language models and LLM crawlers. Think of it like robots.txt. Instead of telling crawlers what to skip, though, it tells them what’s important and where to find it.
AI tools and research assistants read llms.txt to get a quick picture of what’s on your site. That helps when someone asks an AI assistant about a topic you’ve written about.
Installation
Add to your Gemfile:
gem "jekyll-llms-generator", "~> 0.3"
Add to _config.yml:
plugins:
- jekyll-llms-generator
Then run bundle install.
Configuration
Every setting goes under llms_txt: in _config.yml:
llms_txt:
title: "Your Name or Site Name"
tagline: "A short description of your site."
intro: |
One or two sentences about who you are and what you write about.
link_tag: true # inject <link rel="ai" href="/llms.txt"> into every page
full: false # also generate /llms-full.txt and add a discovery link in llms.txt
sections:
- title: "Blog Posts"
collection: posts
limit: 20
- title: "Projects"
collection: projects
- title: "Pages"
pages:
- /about/
Options
| Key | Default | Description |
|---|---|---|
title |
site title |
H1 heading in llms.txt |
tagline |
site description |
Blockquote line below the title |
intro |
(none) | Optional paragraph after the tagline |
link_tag |
true |
Inject <link rel="ai" href="/llms.txt"> into every HTML page’s <head> |
full |
false |
Also generate /llms-full.txt with full plain-text content; adds a discovery link in llms.txt header |
sections |
[] |
Array of section definitions |
Each section takes a title plus collection (a Jekyll collection name, including posts), pages (an array of page URLs), or both. Add limit: to cap how many items show up.
Per-document opt-out
To leave a post or document out, add llms_txt: false to its frontmatter:
---
title: "Draft Post"
llms_txt: false
---
Output format
The generated /llms.txt follows the llmstxt.org spec:
# Jason Chance
> Downtown revitalization, local government technology, and public finance.
Jason Chance is a DDA director writing about public finance and downtown revitalization.
## Blog Posts
- [How DDAs Can Use TADs to Fund Revitalization](https://jasonchance.com/blog/how-ddas-can-use-tads/): A practical overview of Tax Allocation Districts for DDA directors.
- [Drone Mapping for Downtown Revitalization](https://jasonchance.com/blog/drone-mapping-downtown/): How consumer drones can create valuable data for DDA strategic planning.
How AI crawlers find it
LLM crawlers find llms.txt the same way crawlers find robots.txt. They check <your-site>/llms.txt directly. With full: true, a [Full content version](/llms-full.txt) link shows up in the llms.txt header so crawlers know to grab the longer file. The optional <link rel="ai"> tag gives them one more way to find it, in the <head> of every HTML page.
You can also submit your site to the llmstxt.org directory so more people and tools can find it.

