Hi everyone,
I’m new to Hugo and front-end development. I have a lot of experience developing iOS apps and some back-end experience. And I’m able to use Hugo to build a very simple website using the themes. The question is if I want to use Hugo to build only a part of a website, that will be totally feasible, right? For example, I use some tool to build https://example.com, and also use Hugo to build https://example.com/part1 as one project, and in another project, I use Hugo to build https://example.com/part2.
For example you can name the publishDir as part2 and then incorporate it in your project (manually or otherwise). Also you would need to set the baseURL value so that it points to /part2 either as a relative or absolute path.
To avoid problems outputting assets make sure not to use a forward slash at the beginning when referencing them in your templates. Use the relPermalink or the relURL functions.