David Silva

Free guide · last checked October 2026

A photography portfolio website for £0 a month

This website costs me nothing a month to host. No Squarespace, no Wix, no Shopify plan. It runs on GitHub Pages, on my own domain, and the only bill is the domain itself. Here's how it's set up, what it can and can't do, and the catch.

The home page of davidslv.photography: two women smiling on a London street at night, with the line From last light to last train.
This site, hosted on GitHub Pages for £0 a month.

1. The catch first

There's no drag-and-drop editor. The site is plain files: one small script turns my photos and text into web pages. I'm a software engineer, so that suits me, and I build and change it with Claude, an AI assistant, which writes and checks the code with me. If you never want to see a file or a terminal, a paid site builder is the easier road. If you're happy to follow steps, this saves you £15 to £30 a month.

Free for 20 people: the Studio Kit

The Studio Kit is this setup written down so Claude can build yours with you: the website, plus your domain, email, mailing list and shop. The first 20 people on the list get it free, in return for honest feedback.

Get a free place

2. What it costs

3. How it works

  1. Your originals stay on your computer. Full-size photos never go online.
  2. A build script makes web-size copies of each photo and writes the pages as plain HTML.
  3. GitHub keeps the finished site. Every time you push a change, it checks the pages and publishes them.
  4. Your domain points at GitHub Pages, so visitors see yourname.com, not a GitHub address.

4. The steps

  1. A GitHub account. Sign up with your business email and turn on two-factor sign-in. Keep your personal email private in GitHub's settings.
  2. A repository named after your domain, set to public. It holds the build script, your text, and the built site in a folder called site.
  3. Choose your pages. Mine: the work, the book, guides, about, terms. Keep it to your best 12 to 30 photos to start.
  4. Write the build script. One Python script, no framework: it reads a list of photos and their descriptions, makes the image sizes, and writes each page. This is the part I built with Claude. A good first ask: "Write one Python script that turns my photos folder into a portfolio site: a work page, an about page and a contact link. Save every photo in three sizes, as AVIF with a JPEG fallback, remove the location data, and add my copyright. No framework." Then ask for changes in plain words, one at a time.
  5. Preview on your own computer before anything goes online.
  6. Turn on Pages: repository Settings, Pages, deploy with GitHub Actions. A short workflow file checks the build and publishes the site folder whenever you push to the main branch.
  7. Verify the domain first in your GitHub account settings (Settings, Pages, Add a domain). GitHub gives you one TXT record to add in Cloudflare. This stops anyone else claiming your domain for their own Pages site.
  8. Connect your domain. In Pages settings, add your domain. In Cloudflare DNS, add GitHub's four A records and four AAAA records for the root, and a CNAME for www pointing to yourname.github.io. Then tick Enforce HTTPS.

These are the records on my domain today, read from public DNS. In Cloudflare, set each one to DNS only (the grey cloud), not proxied.

TypeNameValue
A@185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
AAAA@2606:50c0:8000::153
2606:50c0:8001::153
2606:50c0:8002::153
2606:50c0:8003::153
CNAMEwwwyourname.github.io

Checked October 2026. GitHub changes these rarely, but check the current list in the GitHub Pages docs before you add them. The padlock can take from a few minutes to 24 hours to appear; until then, Enforce HTTPS stays greyed out.

The photo book page on davidslv.photography: owners standing round a vintage open car on a frosty morning, with buttons to buy the hardcover.
A page for my photo book, on the same free site. The shop itself runs through Stripe, not GitHub.

5. Photos that load fast and stay yours, and links that share well

6. What it can't do

Free for 20 people

Want Claude to build yours with you?

The Studio Kit is everything behind this website, written down so Claude can set it up with you, one step at a time: domain, email, website, mailing list, social posting and shop. You approve every step. The first 20 people on the list get it free, in return for honest feedback. Everyone after that gets first access when it opens.

Get a free place