Skip to content

Commit

Permalink
Document disableAliases
Browse files Browse the repository at this point in the history
  • Loading branch information
bep authored Feb 28, 2019
1 parent 00e4402 commit 8cba70e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/en/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ defaultContentLanguage ("en")
defaultContentLanguageInSubdir (false)
: Render the default content language in subdir, e.g. `content/en/`. The site root `/` will then redirect to `/en/`.

disableAliases (false)
: Will disable generation of alias redirects. Note that even if `disableAliases` is set, the aliases themselves are preserved on the page. The motivation with this is to be able to generate 301 redirects in an `.htacess`, a Netlify `_redirects` file or similar using a custom output format.

disableHugoGeneratorInject (false)
: Hugo will, by default, inject a generator meta tag in the HTML head on the _home page only_. You can turn it off, but we would really appreciate if you don't, as this is a good way to watch Hugo's popularity on the rise.

Expand Down

3 comments on commit 8cba70e

@geeknoid
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Is there a command-line version of this too?

@moorereason
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@geeknoid, No.

@bep
Copy link
Member Author

@bep bep commented on 8cba70e Feb 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set it as an OS env:

env HUGO_DISABLEALIASES=true hugo

Please sign in to comment.