Skip to content

Commit

Permalink
Remove now superfluous lowercasing
Browse files Browse the repository at this point in the history
See #2615
See #1129
  • Loading branch information
bep committed Oct 24, 2016
1 parent 5859c69 commit 333bb05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion hugolib/multilingual.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 2 additions & 4 deletions hugolib/site_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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},
Expand Down

0 comments on commit 333bb05

Please sign in to comment.