This repository demonstrates how to generate an llms.txt file using the Hugo static site generator.
llms.txt is a Markdown-formatted text file proposed for improving the accessibility of website content to large language models (LLMs). llms.txt contributes to generative engine optimization (GEO) of your website.
- LLMs have small context windows and cannot process entire websites easily.
llms.txtprovides a concise, structured summary of your website:- Title
- Base URL
- Description
- Content index (articles, pages) with summaries
- It is both human-readable and machine-parsable (for bots or scripts).
Reference:
- LLMS Standard: https://llmstxt.org/
- LLMS repo: https://github.com/AnswerDotAI/llms-txt
- LLMS Info: https://dev.to/masutaka/added-llmstxt-and-llms-fulltxt-to-my-hugo-built-website-343i
- LLMS Example: https://kibervarnost.si/llms.txt
Add llms as a custom output format in config.toml (already included) - add that to your config.toml
Already included in /layouts/index.llms.txt.
hugo