采采流水

An Essay Concerning Human Understanding

Deploy Hugo blog on Netlify

Qiangua / 2019-11-20


General introduction of several problems I got during the process I deploy hugo blog on Netlify.

First Issue: Can’t recognize submodule’s position

The blog theme is added by using git submodule, such as git submodule add origin url. Remember the url of theme repo to use https instead of git.

Second Issue: Command not found and continue publishing

Now that I use hugo to generate the blog publish file, so it’s necessary to set GO environment in Netlify’s machine. All you need to do is to customize deployment setting environment:

More details to check this link: https://docs.netlify.com/configure-builds/common-configurations/#gatsby

Third Issue: Clear the cache and redeploy

If everything seems fine, but your blog is still not display normally. Maybe you need to clear out the cache and redeploy on the Netlify.