Point directly at the theme on github

Hello
I have many hugo sites on subdomains like

one.domain.com
two.domain.com
three.domain.com


And use the same theme in all websites. Can you host the theme in repo github and use theme = "https://github.com/user/repo"

Hello,

Hugo is a static site generator.

You can use the same theme from a GiHub repo for different sites and then publish the generated HTML along with its assets either statically or by using a CI/CD service like Netlify etc.

I use cloudflare pages and the problem is I use the same header and footer on all my sites. If I want to modify something I have to amend it in all of my sites

You can override a theme on a per project basis by replicating a template’s PATH directly under the project’s root in a /layouts/ folder.

With this approach you can still use the same theme across all your sites and have differentiated headers, footers etc.