config: Fix _merge issue when key doesn't exist on the left side

Fixes #13643
Fixes #13646
This commit is contained in:
Bjørn Erik Pedersen
2025-04-23 16:27:14 +02:00
parent 61a286595e
commit 179aea11ac
7 changed files with 165 additions and 90 deletions

View File

@@ -17,6 +17,7 @@ import (
"fmt"
"net/http"
"regexp"
"slices"
"sort"
"strings"
@@ -28,7 +29,6 @@ import (
"github.com/gohugoio/hugo/common/herrors"
"github.com/mitchellh/mapstructure"
"github.com/spf13/cast"
"slices"
)
type BaseConfig struct {