What I wanted
A portfolio for junior software, web and DevOps roles, hosted for free, with my own domain and HTTPS. I did not want a framework for ten static pages, so the site is plain HTML and CSS with a little JavaScript, generated by one Python script so the header and footer never drift.
Serve only the docs/ folder
The repository also holds my brand files, content drafts and a CV I had not reviewed yet. I did not want those published. GitHub Pages can serve from main and the /docs folder, so only docs/ is public.
gh api -X POST repos/HomemadeICT/theekmind.com/pages \
-f 'source[branch]=main' -f 'source[path]=/docs'
gh api -X PUT repos/HomemadeICT/theekmind.com/pages -f cname=theekmind.com
Two files inside docs/ matter: CNAME, and an empty .nojekyll. Without .nojekyll, Pages does not serve dot-folders, and my .well-known/security.txt would stop working.
Nine DNS records, all "DNS only"
My nameservers were already Cloudflare. For the apex domain I added the four GitHub Pages addresses and their IPv6 twins, and a www CNAME:
| Type | Name | Content |
|---|---|---|
| A (x4) | @ |
185.199.108.153, .109.153, .110.153, .111.153 |
| AAAA (x4) | @ |
2606:50c0:8000::153 to 2606:50c0:8003::153 |
| CNAME | www |
homemadeict.github.io |
I left the records unproxied (the grey cloud). GitHub needs to see the real DNS to issue the certificate, and turning the proxy on later requires Cloudflare's SSL mode to be Full (strict) first, or you get redirect loops.
I checked the records against Cloudflare's own nameservers, not a cached resolver:
dig +short @zod.ns.cloudflare.com theekmind.com A
dig +short @zod.ns.cloudflare.com www.theekmind.com CNAME
HTTPS takes a few minutes
The certificate was approved while I was away. Then I turned on enforcement:
gh api repos/HomemadeICT/theekmind.com/pages --jq '{cname,https_enforced,cert:.https_certificate}'
gh api -X PUT repos/HomemadeICT/theekmind.com/pages -F https_enforced=true
For about three minutes after that, http://theekmind.com still answered 200 before it began redirecting. If you test from a shell that exports a proxy, add --noproxy '*' to curl, or you will be testing the proxy.
Three small traps
- A mistake in the generator. I patched my Python script with another script that spliced strings containing triple quotes, and left a stray quote. The next build failed at once with an
IndentationError. - A phone-width overflow. A
docker-composecode block pushed one page to 592 px wide at a 390 px screen. One rule fixed it:pre{overflow-x:auto;max-width:100%}. I found it by measuringscrollWidthof every page at 390, 820 and 1280 px. - A blog feed the browser would not read. Blogger's JSON feed has no CORS header, so
fetch()from my site is blocked. Blogger'salt=json-in-script&callback=form works from any origin, and the page falls back to a plain link when it fails.
What I changed after feedback
I first made a dark navy header and footer, and the site followed the computer's dark mode. I was told it felt too dark. I made the header and footer light, stopped following the system setting, and left dark mode as a switch for the visitor.
The result
Ten pages, five case studies, an interactive 3D network lab, a sitemap, robots, a manifest and favicons, live at theekmind.com over HTTPS. Publishing is git push, and Pages rebuilds in about 40 seconds.

Join the conversation
Leave your thoughts