mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'
This commit is contained in:
@@ -166,6 +166,12 @@ Enable to turn relative URLs into absolute.
|
||||
|
||||
The directory from where Hugo reads content files. {{% module-mounts-note %}}
|
||||
|
||||
### copyright
|
||||
|
||||
**Default value:** ""
|
||||
|
||||
Copyright notice for your site, typically displayed in the footer.
|
||||
|
||||
### dataDir
|
||||
|
||||
**Default value:** "data"
|
||||
@@ -275,6 +281,12 @@ If true, auto-detect Chinese/Japanese/Korean Languages in the content. This will
|
||||
### imaging
|
||||
See [Image Processing Config](/content-management/image-processing/#image-processing-config).
|
||||
|
||||
### languageCode
|
||||
|
||||
**Default value:** ""
|
||||
|
||||
A language tag as defined by [RFC 5646](https://datatracker.ietf.org/doc/html/rfc5646). The internal [RSS template](https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/_default/rss.xml) populates its `<language>` element with this value. The value is not used elsewhere.
|
||||
|
||||
### languages
|
||||
See [Configure Languages](/content-management/multilingual/#configure-languages).
|
||||
|
||||
@@ -351,6 +363,17 @@ When using `ref` or `relref` to resolve page links and a link cannot resolved, i
|
||||
### refLinksNotFoundURL
|
||||
URL to be used as a placeholder when a page reference cannot be found in `ref` or `relref`. Is used as-is.
|
||||
|
||||
### removePathAccents
|
||||
|
||||
**Default value:** false
|
||||
|
||||
Removes [non-spacing marks](https://www.compart.com/en/unicode/category/Mn) from [composite characters](https://en.wikipedia.org/wiki/Precomposed_character) in content paths.
|
||||
|
||||
```text
|
||||
content/post/hügó.md --> https://example.org/post/hugo/
|
||||
```
|
||||
|
||||
|
||||
### rssLimit
|
||||
|
||||
Maximum number of items in the RSS feed.
|
||||
@@ -381,9 +404,9 @@ The directory where Hugo reads the themes from.
|
||||
|
||||
### timeout
|
||||
|
||||
**Default value:** 10000
|
||||
**Default value:** "30s"
|
||||
|
||||
Timeout for generating page contents, in milliseconds (defaults to 10 seconds). *Note:* this is used to bail out of recursive content generation, if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents) you might need to raise this limit.
|
||||
Timeout for generating page contents, specified as a [duration](https://pkg.go.dev/time#Duration) or in milliseconds. *Note:* this is used to bail out of recursive content generation. You might need to raise this limit if your pages are slow to generate (e.g., because they require large image processing or depend on remote contents).
|
||||
|
||||
### timeZone
|
||||
|
||||
@@ -456,7 +479,7 @@ This is only relevant when running `hugo server`, and it allows to set HTTP head
|
||||
{{< code-toggle file="config">}}
|
||||
[server]
|
||||
[[server.headers]]
|
||||
for = "/**.html"
|
||||
for = "/**"
|
||||
|
||||
[server.headers.values]
|
||||
X-Frame-Options = "DENY"
|
||||
@@ -471,7 +494,7 @@ Since this is is "development only", it may make sense to put it below the `deve
|
||||
|
||||
{{< code-toggle file="config/development/server">}}
|
||||
[[headers]]
|
||||
for = "/**.html"
|
||||
for = "/**"
|
||||
|
||||
[headers.values]
|
||||
X-Frame-Options = "DENY"
|
||||
@@ -564,12 +587,18 @@ Test and document setting params via JSON env var.
|
||||
|
||||
## Ignore Content and Data Files when Rendering
|
||||
|
||||
To exclude specific files from the content and data directories when rendering your site, set `ignoreFiles` to one or more regular expressions.
|
||||
To exclude specific files from the `content` and `data` directories when rendering your site, set `ignoreFiles` to one or more regular expressions to match against the absolute file path.
|
||||
|
||||
For example, to ignore content and data files ending with `.foo` and `.boo`:
|
||||
To ignore files ending with `.foo` or `.boo`:
|
||||
|
||||
{{< code-toggle >}}
|
||||
ignoreFiles = [ "\\.foo$","\\.boo$"]
|
||||
{{< code-toggle copy="false" >}}
|
||||
ignoreFiles = ['\.foo$', '\.boo$']
|
||||
{{< /code-toggle >}}
|
||||
|
||||
To ignore a file using the absolute file path:
|
||||
|
||||
{{< code-toggle copy="false" >}}
|
||||
ignoreFiles = ['^/home/user/project/content/test\.md$']
|
||||
{{< /code-toggle >}}
|
||||
|
||||
## Configure Front Matter
|
||||
|
Reference in New Issue
Block a user