Build static html into specified directory. Useful for debugging and some deployment scenarios

hugo_build(
  site = ".",
  dest = NULL,
  build_drafts = FALSE,
  build_future = FALSE,
  clean = FALSE,
  base_url = NULL,
  relative_urls = NULL
)

Arguments

site

Path to hugo site.

dest

Destination directory. If NULL, the default, will build in {site}/public

build_drafts, build_future

Should drafts and future posts be included in the built site?

clean

Remove files in public/ that don't exist in the source.

base_url

<string> Optionally override the baseURL setting from hugo config.

relative_urls

<bool> Optionally the override the relativeURL setting from hugo config.