summaryrefslogtreecommitdiffstats
path: root/hugolib
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-12 14:30:43 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-12 14:30:43 +0200
commitb7dc93ca11b3aa7fb20e302c29c65af17067526d (patch)
treeea777d0e21abcfbc6b5fe6cb0ce64fcc3a253ead /hugolib
parentf210188da3ce901d7bdef095c2021f8365bf11e4 (diff)
config: Remove unexpected _merge keys introduced in author and social maps
Fixes #11083
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/config_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/hugolib/config_test.go b/hugolib/config_test.go
index 3b137d8d6..7f278f00a 100644
--- a/hugolib/config_test.go
+++ b/hugolib/config_test.go
@@ -695,6 +695,10 @@ func TestHugoConfig(t *testing.T) {
filesTemplate := `
-- hugo.toml --
theme = "mytheme"
+[social]
+twitter = "bepsays"
+[author]
+name = "bep"
[params]
rootparam = "rootvalue"
-- config/_default/hugo.toml --
@@ -711,6 +715,8 @@ rootparam: {{ site.Params.rootparam }}
rootconfigparam: {{ site.Params.rootconfigparam }}
themeparam: {{ site.Params.themeparam }}
themeconfigdirparam: {{ site.Params.themeconfigdirparam }}
+social: {{ site.Social }}
+author: {{ site.Author }}
`
@@ -735,6 +741,8 @@ themeconfigdirparam: {{ site.Params.themeconfigdirparam }}
"rootconfigparam: rootconfigvalue",
"themeparam: themevalue",
"themeconfigdirparam: themeconfigdirvalue",
+ "social: map[twitter:bepsays]",
+ "author: map[name:bep]",
)
})