Hello,
I find Hugo an excellent platform, and would like to sincerely express my gratitude for the existence of this software. Thank you.
I have a question about running two distinct websites (on different domain name, too) that share some content. It may be easier to illustrate this with two basic examples.
- Imagine I have my personal website A and a company website B. Both of them have
contents/announcements
to keep a section with posts about announcements. Some announcements would be common between the two, and would like not to have to re-write for both sites. - Imagine I have my personal website A and a company website B. Both of them have
contents/projects
where I maintain a list of projects and pages for individual projects. All the content in projects is shared between the two.
For (2) it is trivial to separate the contents/projects
directory to an individual git repo and then use git submodules in each Hugo project that will inherit from that single repo. It’s not as straightforward for (1). Is there any idiomatic way to handle the case where you have 2 sites sharing some content or all content and you want to keep them distinct?