mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	| @@ -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) | ||||
|   | ||||
| @@ -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}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user