I am very new to Hugo and don’t have enough programming knowledge:( I just started building my website following the step-by-step guide on the Hugo website. After completing the quick start, I tried to host my website on GitHub, but I encountered the error message ‘Unable to locate config file or config directory.’"
I have checked the yaml and toml files, they are in the root directory. I have replaced the website address in hugo.toml file by the one provided by GitHub. Can anyone help me with this? Many thanks in advance!
Thank you very much for your help! I just double-checked. The main branch is correct. Here is the link:) GitHub - luolinlin1201/Im00_im00. Many thanks in advance!
Thank you very much irkode! It worked! But I met another unexpected issue: Error: failed to load config: “/home/runner/work/Im00_im00/Im00_im00/hugo.toml:3:13”: unmarshal failed: toml: expected newline but got U+0073 ‘s’
I have checked my codes and it seems all good. Could you help me with this? Many thanks in advance!
Adding .hugo_build.lock to source control does not cause unpredictable results, but there’s no reason to include it.
Adding the public directory to source control does not cause unpredictable results, but in a CI/CD workflow the directory is not used, so there’s no reason to include it.
Adding the resources directory to source control does not cause unpredictable results, and its presence can reduce CI/CD build times. For example, if a site processes 1000 images, the results are cached (by default) within the resources directory. If you include this directory in source control, the cached images will be used when building your site. From a cost and performance standpoint this can be a big win.
so if there’s anything in public that is not touched it will be pushed to the site. We already had some problems with ancient content there, that affected the published site. So for that kind of workflow definition public may affect.
i never digged in details on resources.
I would follow you there if the maintainer keeps the resources clean (seen tons of fingerprinted development files there)
Question: as these are build results would’t it be better to use the ci/cd to cache them?