mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
Fix case issue Viper vs Blackfriday config
There are still work to be done in the case department, but that will have to be another day. Fixes #2581 See https://github.com/spf13/viper/issues/261
This commit is contained in:
committed by
GitHub
parent
4d6cd3cb2a
commit
40b1b8f703
@@ -337,8 +337,9 @@ 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{}{
|
||||
"plainIDAnchors": true})
|
||||
strings.ToLower("plainIDAnchors"): true})
|
||||
|
||||
viper.Set("UglyURLs", uglyURLs)
|
||||
|
||||
@@ -964,8 +965,9 @@ 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{}{
|
||||
"sourceRelativeLinksProjectFolder": "/docs"})
|
||||
strings.ToLower("sourceRelativeLinksProjectFolder"): "/docs"})
|
||||
|
||||
site := &Site{
|
||||
Source: &source.InMemorySource{ByteSource: sources},
|
||||
|
Reference in New Issue
Block a user