Create picture for navigation bar

Figured it out.

After creating additional links, realized that correct way to refer to the site root is with {{.SiteBaseURL}}. A patch can be added to this, so you can write {{.SiteBaseURL}}/images/image.png.

Since images in Hugo, especially for something like generic images in the theme are placed in the /static directory (this I also figured out by looking at other images in the theme, and where they’re located), I went ahead and placed my image in static. Once there, you do not need to specify the directory anymore, so it will simply be:

{{.SiteBaseURL}}/image.png. Nice.

1 Like