ref: 333bb05512a484e8700430ca3b221deac06199b5
parent: 5859c691ec988f1617d43a3f4ab5d4ac766f73a2
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Oct 24 17:33:11 EDT 2016
Remove now superfluous lowercasing See #2615 See #1129
--- a/hugolib/multilingual.go
+++ b/hugolib/multilingual.go
@@ -83,7 +83,6 @@
for lang, langConf := range l {
langsMap, err := cast.ToStringMapE(langConf)
- helpers.ToLowerMap(langsMap)
if err != nil {
return nil, fmt.Errorf("Language config is not a map: %T", langConf)
--- a/hugolib/site_test.go
+++ b/hugolib/site_test.go
@@ -337,9 +337,8 @@
viper.Set("disableRSS", false)
viper.Set("rssURI", "index.xml")
viper.Set("blackfriday",
- // TODO(bep) https://github.com/spf13/viper/issues/261
map[string]interface{}{
- strings.ToLower("plainIDAnchors"): true})
+ "plainIDAnchors": true})
viper.Set("uglyURLs", uglyURLs)
@@ -965,9 +964,8 @@
viper.Set("pluralizeListTitles", false)
viper.Set("canonifyURLs", false)
viper.Set("blackfriday",
- // TODO(bep) see https://github.com/spf13/viper/issues/261
map[string]interface{}{
- strings.ToLower("sourceRelativeLinksProjectFolder"): "/docs"})
+ "sourceRelativeLinksProjectFolder": "/docs"})
site := &Site{
Source: &source.InMemorySource{ByteSource: sources},