config_netlify: Create the configuration (file) for Netlify
Description
This function provides some default configurations for a Huge website to be
built via Hugo and deployed on Netlify. It sets the build command for the
production and preview contexts, respectively (for preview contexts such as
deploy-preview, the command will build future posts). It also sets the
publish directory according to your setting in Hugo's config file (if it
exists, otherwise it will be the default public directory). The Hugo
version is set to the current version of Hugo found on your computer.
If output = NULL, a character vector of TOML data representing
the configurations (which you can preview and decide whether to write it to
a file), otherwise the TOML data is written to a file.
Arguments
output
Path to the output file, or NULL. If the file exists and
the R session is interactive, you will be prompted to decide whether to
overwrite the file.
new_config
If any default configuration does not apply to your site,
you may provide a list of configurations to override the default. For
example, if you want to use Hugo v0.25.1, you may use new_config =
list(build = list(environment = list(HUGO_VERSION = '0.25.1'))).