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.

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.
2. What it costs
- Hosting: £0. GitHub Pages is free for public repositories.
- Domain: what your registrar charges each year. Mine is on Cloudflare, which sells domains at cost.
- Security certificate (the padlock): £0, included.
- Analytics: £0. Cloudflare Web Analytics counts visits without cookies.
3. How it works
- Your originals stay on your computer. Full-size photos never go online.
- A build script makes web-size copies of each photo and writes the pages as plain HTML.
- GitHub keeps the finished site. Every time you push a change, it checks the pages and publishes them.
- Your domain points at GitHub Pages, so visitors see yourname.com, not a GitHub address.
4. The steps
- 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.
- 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. - Choose your pages. Mine: the work, the book, guides, about, terms. Keep it to your best 12 to 30 photos to start.
- 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.
- Preview on your own computer before anything goes online.
- Turn on Pages: repository Settings, Pages, deploy with GitHub Actions. A short workflow file checks the build and publishes the
sitefolder whenever you push to the main branch. - 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.
- 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.
| Type | Name | Value |
|---|---|---|
| A | @ | 185.199.108.153185.199.109.153185.199.110.153185.199.111.153 |
| AAAA | @ | 2606:50c0:8000::1532606:50c0:8001::1532606:50c0:8002::1532606:50c0:8003::153 |
| CNAME | www | yourname.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.

5. Photos that load fast and stay yours, and links that share well
- Three sizes of every photo (around 640, 1200 and 2000 pixels wide), so phones don't download a huge file. The largest is too small for a good print, which protects your work.
- Two formats: AVIF, which is small, with JPEG as a fallback for older browsers.
- Location data removed. Re-saving the photos drops the GPS and camera serial number from the web copies. Your originals stay as they are.
- Your name added back: creator, credit and copyright written into each web JPEG.
- Link previews. Each page carries Open Graph tags (a title, a short description and one photo), so a link shared in WhatsApp, iMessage or LinkedIn shows a proper card instead of a bare address. Facebook's Sharing Debugger shows what the card will look like.
- Facts for search engines (JSON-LD). A small hidden block on each page says who I am, what the site is, and who took and owns each photo. Google reads it; visitors don't see it. Google's Rich Results Test checks it.
- Proper descriptions (alt text) on every photo, which helps people using screen readers and helps Google understand the page.
6. What it can't do
- No shop on GitHub itself. GitHub Pages isn't for running an online business. For sales I link out: Gumroad for downloads, Stripe for the printed book.
- No contact forms or logins on their own. I use an email link, and a separate service (Sender) for the newsletter sign-up.
- Size limits. The published site can be up to 1 GB, with a soft limit of 100 GB of traffic a month. A portfolio is far under both.
- Public code. On the free plan the repository is public, so never put anything private in it: no client details, no bank details, no full-size originals.
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.