How to manage multiple websites based on a single template repo? #128165
Unanswered
gxjansen
asked this question in
New to GitHub
Replies: 1 comment
-
Hi @gxjansen, thanks for being a part of the GitHub Community! If there will only be minor differences in the content of the site, you can have a json or env file that you can customize. When you update the template, you can then pull changes without overwriting those files. (Like your idea about using .gitattributes to ignore site specific files). I personally would create separate forks so the branches don't get mixed up when deploying to pages or if you want to make more changes later. If you need more complex modifications for each site, I do see that Astro has astro:env as a feature now that might help you manage this better! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a general git(hub) question. Fairly new to using git (at least for the purpose below) and Googling (or ChatGPTing) doesn't really give me answers (or rather: way to many different answers). I think I need more specific search terms but I don't know which so maybe you can give me a hint 😄
I'm looking for info on how to work with Git when you would want to set up a "base" repository (which in itself is a fork but that's probably not relevant) and use that as a template/base repo for other projects (websites in my case). I am the sole admin of all these websites and I want them all to share (most of) the layout/design/theme (that should come from the base repo) but each site will have different content, in a different language and will have some minor differences like (like URL, name, site logo, meta description, etc.).
My main challenge is: How do I set up a system that (manually or automatically) updates the 4 websites when the base theme is updated, but prevent it from overwriting any customizations?
In case it makes a difference: I plan on creating these websites with Astro and publish through GitHub Pages.
Beta Was this translation helpful? Give feedback.
All reactions