summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-20 10:30:40 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-06-20 11:03:34 +0200
commit516e6c6dc5733cdaf985317d58eedbc6ec0ef2f7 (patch)
tree8d1c15fc782585daf4e60bca4f0928d15fb5e042 /hugolib/config.go
parent3183b9a29d8adac962fbc73f79b04542f4c4c55d (diff)
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
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 62cdea952..7779a4d83 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -131,4 +131,5 @@ func loadDefaultSettingsFor(v *viper.Viper) {
v.SetDefault("enableMissingTranslationPlaceholders", false)
v.SetDefault("enableGitInfo", false)
v.SetDefault("ignoreFiles", make([]string, 0))
+ v.SetDefault("disableAliases", false)
}