From a49099f60eaeddf0d5c7f418635d1f3ed1894abe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 24 Oct 2016 21:33:11 +0200 Subject: [PATCH] Remove now superfluous lowercasing See #2615 See #1129 --- hugolib/multilingual.go | 1 - hugolib/site_test.go | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/hugolib/multilingual.go b/hugolib/multilingual.go index cf45e723344..29a2ea93ad6 100644 --- a/hugolib/multilingual.go +++ b/hugolib/multilingual.go @@ -83,7 +83,6 @@ func toSortedLanguages(l map[string]interface{}) (helpers.Languages, error) { 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) diff --git a/hugolib/site_test.go b/hugolib/site_test.go index 1792263e330..22c61582847 100644 --- a/hugolib/site_test.go +++ b/hugolib/site_test.go @@ -337,9 +337,8 @@ func doTestShouldAlwaysHaveUglyURLs(t *testing.T, uglyURLs bool) { 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 @@ func setupLinkingMockSite(t *testing.T) *Site { 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},