mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 19:04:40 -04:00
Tweak env var config content
This commit is contained in:
parent
d134b397fe
commit
68368bb020
@ -17,7 +17,6 @@ The [directory structure][dirs] of a Hugo website—or more precisely, the s
|
||||
|
||||
Because of Hugo's preference for sane defaults, many websites may not need a configuration file. Hugo is designed to recognize certain typical usage patterns (and even expects them by default).
|
||||
|
||||
|
||||
## Configuration Lookup Order
|
||||
|
||||
Hugo searches for a configuration file in the root of your website's source directory as a default behavior. First, it looks for a `./config.toml` file. If that's not present, it will seek a `./config.yaml` file, followed by a `./config.json` file.
|
||||
@ -315,7 +314,7 @@ enableemoji: true
|
||||
|
||||
## Environmental Variables
|
||||
|
||||
In addition to the 3 configuration file options already mentioned, website configuration can be accomplished through operating system environment variables.
|
||||
In addition to the 3 config options already mentioned, website configuration can be accomplished through operating system environment variables.
|
||||
|
||||
For example, the following command will effectively set a website's title on Unix-like systems:
|
||||
|
||||
@ -324,7 +323,7 @@ $ env HUGO_TITLE="Some Title" hugo
|
||||
```
|
||||
|
||||
{{% note "Setting Environment Variables" %}}
|
||||
Names must be prefixed with `HUGO_` when setting operating system environment variables.
|
||||
Names must be prefixed with `HUGO_` and the configuration key must be set in uppercase when setting operating system environment variables.
|
||||
{{% /note %}}
|
||||
|
||||
## Ignoring Files When Rendering
|
||||
|
BIN
static/images/showcase-optimized/tibobeijennl.jpg
Normal file
BIN
static/images/showcase-optimized/tibobeijennl.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Loading…
x
Reference in New Issue
Block a user