mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -62,7 +62,7 @@ type Config struct {
|
||||
FootnoteReturnLinkContents string
|
||||
}
|
||||
|
||||
func UpdateConfig(b Config, m map[string]interface{}) (Config, error) {
|
||||
func UpdateConfig(b Config, m map[string]any) (Config, error) {
|
||||
if err := mapstructure.Decode(m, &b); err != nil {
|
||||
return b, errors.WithMessage(err, "failed to decode rendering config")
|
||||
}
|
||||
|
@@ -158,7 +158,7 @@ func TestGetHTMLRendererAnchors(t *testing.T) {
|
||||
c.Assert(err, qt.IsNil)
|
||||
conv, err := p.New(converter.DocumentContext{
|
||||
DocumentID: "testid",
|
||||
ConfigOverrides: map[string]interface{}{
|
||||
ConfigOverrides: map[string]any{
|
||||
"plainIDAnchors": false,
|
||||
"footnotes": true,
|
||||
},
|
||||
|
Reference in New Issue
Block a user