mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 15:10:35 +03:00
Add support for native Org dates in frontmatter
This commit is contained in:
parent
127d5feb32
commit
c66dc6c74f
2 changed files with 12 additions and 0 deletions
|
@ -69,6 +69,7 @@ func TestUnmarshalToInterface(t *testing.T) {
|
|||
{`[ "Brecker", "Blake", "Redman" ]`, JSON, []interface{}{"Brecker", "Blake", "Redman"}},
|
||||
{`{ "a": "b" }`, JSON, expect},
|
||||
{`#+a: b`, ORG, expect},
|
||||
{`#+DATE: <2020-06-26 Fri>`, ORG, map[string]interface{}{"date": "2020-06-26"}},
|
||||
{`a = "b"`, TOML, expect},
|
||||
{`a: "b"`, YAML, expect},
|
||||
{`a,b,c`, CSV, [][]string{{"a", "b", "c"}}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue