Back to templates

Hugo Starter

A static site generated with Hugo.
A static site generated with Hugo.
Framework
Hugo iconHugo
Language
Go
Use cases

This is a Hugo project bootstrapped with hugo new site project-name.

Usage

You can run the Hugo site with:

hugo server

This will start a high-performance server that will watch your files.

You can run the Hugo website using Wasmer (check out the install guide):

wasmer run wasmer-examples/hugo-wasmer-starter --net -- --port=1313

[!TIP] You can also run wasmer run . --net -- --port=1313 in the root of this repo, after running hugo

Open http://localhost:1313 with your browser to see the result.

Deploy Wasmer Edge

The easiest way to deploy your Hugo static site is to use the Wasmer Edge.

Live example: https://wasmer-edge-hugo-sample.wasmer.app/

First, you'll need to run hugo to build the assets, and then, to deploy to Wasmer Edge:

wasmer deploy

[!NOTE] You will need to change the namespace in wasmer.toml to your own namespace and app name in app.yaml to your own app name.

Related templates

Making software universally accessible