I wanted to share a workflow for making your Hugo site AI-friendly using the llms.txt standard. This is similar in spirit to robots.txt or RSS, but designed specifically for Large Language Models (LLMs). It provides a Markdown-formatted summary of your site, including: Website title, Base URL, Description, Index of content (articles/pages) with summaries in MD.
llms.txt is human-readable and machine-parsable. It is placed in root to help AI agents quickly understand your site content so that you improve your Generative Engine Optimization (GEO).
I created a minimal Hugo repo with instructions on how to generate llms.txt automatically:
GitHub repo: https://github.com/roverbird/llms-hugo
It includes:
-
config.tomlsetup with a customllmsoutput format -
Example homepage content
-
Template
layouts/index.llms.txtto generate a structured Markdown output
You can see a live Hugo-generated example on a cybersecurity-focused site (the site is built with Hugo) here:
Live llms.txt: https://kibervarnost.si/llms.txt
This is a simple way to make your Hugo ready for AI SEO (GEO).
