Skip to content

Base Url

joe.c.starr edited this page Jan 25, 2024 · 1 revision

When editing be careful to write correctly formatted YAML. In YAML indentation matters. A short intro to YAML can be found here.


Description

The base URL field tells hugo what the beginning of a url on your page should look like. For example if you configure:

baseURL: "example.com"

a link to the blog section on your page will be:

http://example.com/blog

Configuration

Free option

Github offers a free subdomain option as part of the pages program. To configure the free option replace <github username> with your github username:

baseURL: "https://<github username>.github.io"

Custom domain name

For a custom url replace <url> with your domain name

baseURL: "https://<url>"