Add multi-format frontmatter parser
This commit is contained in:
@ -11,7 +11,13 @@
|
||||
window.repoFiles = {
|
||||
_posts: {
|
||||
"2015-02-14-this-is-a-post.md": {
|
||||
content: "---\ntitle: This is a post\nimage: /nf-logo.png\ndate: 2015-02-14T00:00:00.000Z\n---\n\n# I Am a Title in Markdown\n\nHello, world\n\n* One Thing\n* Another Thing\n* A Third Thing\n"
|
||||
content: "---\ntitle: This is a YAML front matter post\nimage: /nf-logo.png\ndate: 2015-02-14T00:00:00.000Z\n---\n\n# I Am a Title in Markdown\n\nHello, world\n\n* One Thing\n* Another Thing\n* A Third Thing\n"
|
||||
},
|
||||
"2015-02-15-this-is-a-json-frontmatter-post.md": {
|
||||
content: "{\n\"title\": \"This is a JSON front matter post\",\n\"image\": \"/nf-logo.png\",\n\"date\": \"2015-02-15T00:00:00.000Z\"\n}\n\n# I Am a Title in Markdown\n\nHello, world\n\n* One Thing\n* Another Thing\n* A Third Thing\n"
|
||||
},
|
||||
"2015-02-16-this-is-a-toml-frontmatter-post.md": {
|
||||
content: "+++\ntitle = \"This is a TOML front matter post\"\nimage = \"/nf-logo.png\"\n\"date\" = \"2015-02-16T00:00:00.000Z\"\n+++\n\n# I Am a Title in Markdown\n\nHello, world\n\n* One Thing\n* Another Thing\n* A Third Thing\n"
|
||||
}
|
||||
},
|
||||
_faqs: {
|
||||
|
Reference in New Issue
Block a user