diff --git a/docs/docs/hosting-deployment/index.html b/docs/docs/hosting-deployment/index.html index 76cd49ac..6cb8abc2 100644 --- a/docs/docs/hosting-deployment/index.html +++ b/docs/docs/hosting-deployment/index.html @@ -67,11 +67,11 @@ TZ = "UTC" # Set to preferred timezone [context.production.environment] - HUGO_VERSION = "0.100.2" + HUGO_VERSION = "0.104.1" HUGO_ENV = "production" [context.deploy-preview.environment] - HUGO_VERSION = "0.100.2" + HUGO_VERSION = "0.104.1"

This configuration assumes you are deploying Blowfish as a Hugo module. If you have installed the theme using another method, change the build command to simply hugo --gc --minify -b $URL.

When you push the config file to your repo, Netlify should automatically deploy your site. You can check the deploy logs in the Netlify UI to check for any errors.

Render #

Deploying to Render is very straightforward and all configuration is via the Render UI.

Create a new Static Site and link it to your project’s code repository. Then simply configure the build command to be hugo --gc --minify and publish directory to be public.

Screen capture of Render settings

The site will automatically build and deploy whenever you push a change to your repo.

Cloudflare Pages #

Cloudflare offers the Pages service that can host Hugo blogs. It builds the site from a git repository and then hosts it on Cloudflare’s CDN. Follow their Hugo deployment guide to get started.

The Rocket Loaderโ„ข feature offered by Cloudflare tries to speed up rendering of web pages with JavaScript, but it breaks the appearance switcher in the theme. It can also cause an annoying light/dark screen flash when browsing your site due to scripts loading in the wrong order.

This problem can be fixed by disabling it:

Hugo sites built with Blowfish still load very quickly, even with this feature disabled.

Shared hosting, VPS or private web server #

Using traditional web hosting, or deploying to your own web server, is as simple as building your Hugo site and transferring the files to your host.

Make sure that the baseURL parameter in config.toml is set to the full URL to the root of your website (including any sub domains or sub-folders).

Then build your site using hugo and copy the contents of the output directory to the root of your web server and you will be ready to go. By default, the output directory is named public.

If you need a hosting provider, check out Vultr or DigitalOcean. Signing up using these affiliate links will give you up to $100 in free credit so you can try the service.