I am pushing some content created with Hugo to the root of a git repository, in the “master” branch. Then a hook on the server push it to the web server, online. As this is a simple Git repository, I can’t do something like Github’s gh-pages branch. I can"t change this default behavior.
However, I need to have the Hugo files in the same repository, so I would like to change the default output path of the website like this:
- output should be in the root folder of the repo ("/")
- the hugo files should be in a subfolder (e.g “/hugo-files/”)
- using “hugo” command would just generate the file in “/” instead of “/hugo-files/public/”
So, setting a different output path in a config file would be awesome.
Is this possible? I didn’t find a config variable in the doc.
If not, what would you recommend?