hugo_build: Build site

View source: R/hugo-server.R

hugo_buildR Documentation

Build site

Description

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

Usage

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.


r-lib/hugodown documentation built on Nov. 24, 2022, 10:06 a.m.