HUGO
News Docs Themes Community GitHub

Configure ugly URLs

Configure ugly URLs.

An ugly URL is a URL that includes a file extension. For example:

https://example.org/section/article.html

In its default configuration, Hugo generates pretty URLs. For example:

https://example.org/section/article/

This is the default configuration:

uglyURLs = false

To generate ugly URLs for the entire site:

uglyURLs = true

To generate ugly URLs for specific sections of your site:

[uglyURLs]
  books = true
  films = false