Skip to content

PacBSD/pacweb

Repository files navigation

Pacweb

This is the public facing website for PacBSD, build using Hugo static site generator.

Setup

To setup Hugo for development, follow the installation instructions on Github.

After cloning the repo copy example-config.toml to config.toml.

Running in development mode

Within the repo run the following in a terminal

$ hugo serve

This will spin up a webserver on port 2015 (defined in config.toml), and build the site watching for changes within the root directory of the repo. When changes are made hugo will rebuild the site and auto reload the site in the browser(s).

Building for production

To build the site for the production server run the following in a terminal

$ hugo --config config-deploy.toml

This will build the static site, using the value of baseurl variable in the config-deploy.toml file. The generated website is placed within the public directory and can be copied to the production server.