Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-28 19:02:42 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-28 19:02:42 +0300
commitb5de37ee793c01f2acccdea7119be05c4182723f (patch)
tree3e756ee580e20c77a364a71231872e29b1c1dd23 /hugolib
parentbf301daf158e5e9673ad5f457ea3a264315942b5 (diff)
Handle toml.LocalDate and toml.LocalDateTime in front matter
See #8801
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/dates_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/hugolib/dates_test.go b/hugolib/dates_test.go
index 6fe3adfa7..c9a33e0f8 100644
--- a/hugolib/dates_test.go
+++ b/hugolib/dates_test.go
@@ -104,6 +104,7 @@ expiryDate=%s
if quoted {
return fmt.Sprintf("%q", d)
}
+
return d
}
@@ -124,7 +125,6 @@ expiryDate=%s
"short-date-yaml-qouted.nn.md", createPageContent(pageTemplYaml, shortDateTempl, true),
"long-date-yaml-unqouted.en.md", createPageContent(pageTemplYaml, longDateTempl, false),
"long-date-yaml-unqouted.nn.md", createPageContent(pageTemplYaml, longDateTempl, false),
-
// TOML
"short-date-toml-unqouted.en.md", createPageContent(pageTemplTOML, shortDateTempl, false),
"short-date-toml-unqouted.nn.md", createPageContent(pageTemplTOML, shortDateTempl, false),
@@ -180,8 +180,8 @@ ExpiryDate: 2099-07-13 15:28:01 +0000 UTC`
// TOML
// These fails: TOML (Burnt Sushi) defaults to local timezone.
// TODO(bep) check go-toml
- // b.AssertFileContent("public/en/short-date-toml-unqouted/index.html", expectShortDateEn)
- // b.AssertFileContent("public/nn/short-date-toml-unqouted/index.html", expectShortDateNn)
+ b.AssertFileContent("public/en/short-date-toml-unqouted/index.html", expectShortDateEn)
+ b.AssertFileContent("public/nn/short-date-toml-unqouted/index.html", expectShortDateNn)
b.AssertFileContent("public/en/short-date-toml-qouted/index.html", expectShortDateEn)
b.AssertFileContent("public/nn/short-date-toml-qouted/index.html", expectShortDateNn)