summaryrefslogtreecommitdiffstats
path: root/parser
diff options
context:
space:
mode:
Diffstat (limited to 'parser')
-rw-r--r--parser/frontmatter.go2
-rw-r--r--parser/frontmatter_test.go4
-rw-r--r--parser/metadecoders/decoder.go2
3 files changed, 4 insertions, 4 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go
index 4965d3fe8..e7492745e 100644
--- a/parser/frontmatter.go
+++ b/parser/frontmatter.go
@@ -20,7 +20,7 @@ import (
"github.com/gohugoio/hugo/parser/metadecoders"
- "github.com/BurntSushi/toml"
+ toml "github.com/pelletier/go-toml/v2"
yaml "gopkg.in/yaml.v2"
)
diff --git a/parser/frontmatter_test.go b/parser/frontmatter_test.go
index 9d9b7c3b8..dfbc695d8 100644
--- a/parser/frontmatter_test.go
+++ b/parser/frontmatter_test.go
@@ -31,9 +31,9 @@ func TestInterfaceToConfig(t *testing.T) {
// TOML
{map[string]interface{}{}, metadecoders.TOML, nil, false},
{
- map[string]interface{}{"title": "test 1"},
+ map[string]interface{}{"title": "test' 1"},
metadecoders.TOML,
- []byte("title = \"test 1\"\n"),
+ []byte("title = \"test' 1\"\n"),
false,
},
diff --git a/parser/metadecoders/decoder.go b/parser/metadecoders/decoder.go
index 131d6f39b..168c130ed 100644
--- a/parser/metadecoders/decoder.go
+++ b/parser/metadecoders/decoder.go
@@ -24,7 +24,7 @@ import (
"github.com/gohugoio/hugo/common/herrors"
"github.com/niklasfasching/go-org/org"
- "github.com/BurntSushi/toml"
+ toml "github.com/pelletier/go-toml/v2"
"github.com/pkg/errors"
"github.com/spf13/afero"
"github.com/spf13/cast"