mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 19:24:39 -04:00
Update documentation for Ugly URLs (#1082)
* Update urls.md Update documentation to reflect status of this issue - (the --uglyurls CLI parameter no longer exists) https://github.com/gohugoio/hugo/issues/4428 See also: https://gohugo.io/getting-started/configuration/#configure-with-environment-variables * Update urls.md Remove a "use" that was not necessary.
This commit is contained in:
parent
88bdec17a5
commit
ac2c4a4871
@ -209,7 +209,7 @@ content/posts/post-1.md
|
||||
|
||||
## Ugly URLs
|
||||
|
||||
If you would like to have what are often referred to as "ugly URLs" (e.g., example.com/urls.html), set `uglyurls = true` or `uglyurls: true` in your site's `config.toml` or `config.yaml`, respectively. You can also use the `--uglyURLs=true` [flag from the command line][usage] with `hugo` or `hugo server`.
|
||||
If you would like to have what are often referred to as "ugly URLs" (e.g., example.com/urls.html), set `uglyurls = true` or `uglyurls: true` in your site's `config.toml` or `config.yaml`, respectively. You can also set the `HUGO_UGLYURLS` environment variable to `true` when running `hugo` or `hugo server`.
|
||||
|
||||
If you want a specific piece of content to have an exact URL, you can specify this in the [front matter][] under the `url` key. The following are examples of the same content directory and what the eventual URL structure will be when Hugo runs with its default behavior.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user