From 5e9b147c2ab5536568ab1254a596479c1ac92b05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 18 Apr 2016 18:44:51 +0200 Subject: [PATCH] docs: Add some doc about ENV config See #2090 --- docs/content/overview/configuration.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/content/overview/configuration.md b/docs/content/overview/configuration.md index d27cf4dbc..e4937efb2 100644 --- a/docs/content/overview/configuration.md +++ b/docs/content/overview/configuration.md @@ -25,6 +25,12 @@ then look for a `config.yaml` file, followed by a `config.json` file. The config file is a site-wide config. The config file provides directions to hugo on how to build the site as well as site-wide parameters and menus. +Site configuration can also be set as environment variables in your operating system. The command below will work on *nix systems and overrides the site title. Note that all the variable names must be prefixed with "HUGO_". + +```bash +env HUGO_TITLE="Some Title" hugo +``` + ## Examples The following is an example of a typical yaml config file: