I want to create 1200 pages for my clearance service

Hi,

I have a Hugo site with templates and a services section already working.

I have a CSV with ~1,500 rows (service_slug, location_name, postcode) representing service × location pages.

I want to generate one Markdown file per row so Hugo can render them with my existing template.

What’s the best practice on Windows:

  • Generate .md files via PowerShell, or

  • Keep CSV in data/ and render pages dynamically?

Any tips or examples for safely scaling this many pages would be appreciated.

Thanks!

I would stuff the CSV file somewhere in the data directory, then create a content adapter. See:

This might be helpful too:
https://discourse.gohugo.io/t/content-adapters-examples-and-performance/49830

1 Like

Thank you. I’ve wasted 12 hours asking AI

1 Like

Correction. I meant to say assets directory.

2 Likes