I have a hugo theme based website that I am hosting from gitlab at myusername.gitlab.io, and then I have another smaller website based on hugo themes at myusername.gitlab.io/repoA, that I would like to add from my previous website, at a url like myusername.gitlab.io/repoA
Now, here is my question ( I have not done this a whole lot, so please forgive my ignorance.)
Hugo is a general-purpose website framework. Technically speaking, Hugo is a static site generator. Unlike systems that dynamically build a page with each visitor request, Hugo builds pages when you create or update your content.
Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.
Common examples of static websites include resume websites, portfolio websites, brochure websites, one-off landing pages, and other informational or read-only sites. These websites are small (three to four pages or fewer), limited in content, and don't require personalized content or frequent updates.
You have to analyze the output files, your individual themes produce. For example:
Theme A produces:
-- index_1.html
-- style_1.css
Theme B produces:
-- index_2.html
-- style_2.css
Hugo does not support post-run scripts, so the simplest way to stack two sites into one another is to write a small shell script like:
cd /path/to/themeA
hugo themeA --destination=/deploy/location/
cd /path/to/themeB
hugo themeB --destination=/deploy/location/about/
This will result in a layout looking like this:
/deploy/location
-- index_1.html
-- style_1.html
-- about/
-- index_1.html
-- index_2.html
This resulting directory can be deployed to your hoster by whatever method you have to use.
Now you can simply look at the resulting page, making it easy to identify broken links and change them in the html of your local hugo template.
Using a subdomain for this seems highly unnecessary. Certificates are only needed for new (sub-)domains.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With