mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 07:58:01 -04:00
Describe how to configure uglyURLs per section
This commit is contained in:
parent
cbbd4c4fe8
commit
1ad28e1e0e
@ -311,6 +311,14 @@ By default, Hugo produces pretty URLs. To generate ugly URLs, change your site c
|
||||
uglyURLs = true
|
||||
{{< /code-toggle >}}
|
||||
|
||||
You can also enable uglyURLs by section. For example, with a site that contains sections for books and films:
|
||||
|
||||
{{< code-toggle file=hugo >}}
|
||||
[uglyURLs]
|
||||
books = true
|
||||
films = false
|
||||
{{< /code-toggle >}}
|
||||
|
||||
### Post-processing
|
||||
|
||||
Hugo provides two mutually exclusive configuration options to alter URLs _after_ it renders a page.
|
||||
|
@ -536,7 +536,7 @@ See [module configuration](/hugo-modules/configuration/#module-configuration-imp
|
||||
|
||||
###### uglyURLs
|
||||
|
||||
(`bool`) When enabled, creates URL of the form `/filename.html` instead of `/filename/`. Default is `false`.
|
||||
(`bool` or `map`) Whether to generate uglyURLs. Default is `false`. See [details](/content-management/urls/#appearance).
|
||||
|
||||
###### watch
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user