hugolib: Add disableAliases
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 20 Jun 2017 08:30:40 +0000 (10:30 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 20 Jun 2017 09:03:34 +0000 (11:03 +0200)
commit516e6c6dc5733cdaf985317d58eedbc6ec0ef2f7
tree8d1c15fc782585daf4e60bca4f0928d15fb5e042
parent3183b9a29d8adac962fbc73f79b04542f4c4c55d
hugolib: Add disableAliases

Note that even with this setting enabled, the aliases themselves are preserved on the pages.

The big motivation for this change is to be able to use the alias definitions to generate `.htaccess` or Netlify's `_redirect` files with server-side redirects.

Fixes #3613
hugolib/config.go
hugolib/site.go