mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Tweak env var config content
This commit is contained in:
1 parent
d134b397fe
commit
68368bb020
2 files changed
+2
-3
No files matched your search
@@ -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).
|
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
|
## 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.
|
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
|
## 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:
|
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" %}}
|
{{% 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 %}}
|
{{% /note %}}
|
||||||
|
|
||||||
## Ignoring Files When Rendering
|
## Ignoring Files When Rendering
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Reference in new issue
Block a user