HomeFreeBSD

Makefiles: Add a conditional check on HOSTNAME variable

Description

Makefiles: Add a conditional check on HOSTNAME variable

In order for hugo to build all links correctly, it is necessary to
define baseURL - but in order to do this, we need some way of adding a
hostname. This change adds the HOSTNAME variable to accomplish this.

Another advantage is that if HOSTNAME is set to something other than
localhost, hugo can be run on a different (more powerful) machine which
can shorten the time it takes to build.

A note about this will need to be added to the FDP later.

Details

Provenance
debdrupAuthored on Feb 14 2021, 9:39 PM
Parents
R9:873687264f6c: The RSS feed for news was missing the # in the URL, resulting in 404s
Branches
Unknown
Tags
Unknown