Fix Hugo Preview Build Failures and English 404s on Cloudflare Pages

Fixing a Hugo Version Mismatch and a Broken English Page on Cloudflare Pages Preview Deployments

After I published the English version under /en/ in Publishing an English Version of a Hugo Blog at a Separate /en/ URL , I tried to send non-main branches to Cloudflare Pages Preview and hit two problems in a row. main (production) was succeeding without issue, so at first I had no idea where the cause was. The Preview build fails with permalink ill-formed After deploy, clicking “English” in the menu returns 404 The root of both was that Cloudflare Pages manages environment variables separately for Production and Preview. I worked through them one at a time. [Read More]

Generating llms.txt and llms-full.txt in Hugo with Output Formats

Adding llms.txt and llms-full.txt to a Hugo blog on Cloudflare Pages

I added llms.txt , a specification that lets LLMs retrieve the information on a website efficiently, to this Hugo blog. Environment Hugo v0.155.2 Theme: Beautifulhugo Cloudflare Pages What llms.txt is A Markdown-format text file placed at the root of a website, proposed at llmstxt.org . Like robots.txt or sitemap.xml, it provides an overview of the site and its main links in a form that is easy for an LLM to read. There are two main kinds of file: [Read More]