From f731f5bc072c4481c36dc9cca465fa296b4be9e3 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Mon, 17 Apr 2023 12:20:26 -0400 Subject: [PATCH] docs: improve nested example in demo --- packages/demo/public/index.html | 45 ++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/packages/demo/public/index.html b/packages/demo/public/index.html index 57b2a2c9..f3953f9e 100644 --- a/packages/demo/public/index.html +++ b/packages/demo/public/index.html @@ -17,12 +17,12 @@ "lobby.jpg": { content: "", }, - 'Other Pics': { - 'moby-dick.jpg': { - content: '', + "Other Pics": { + "moby-dick.jpg": { + content: "", }, - 'lobby.jpg': { - content: '', + "lobby.jpg": { + content: "", }, }, }, @@ -134,28 +134,39 @@ }, _nested_pages: { authors: { - 'author-1': { - 'index.md': { - content: '---\ntitle: An Author\n---\nAuthor details go here!.\n', + "author-1": { + "index.md": { + content: "---\ntitle: An Author\n---\nAuthor details go here!.\n", }, }, - 'index.md': { - content: '---\ntitle: Authors\n---\n', + "index.md": { + content: "---\ntitle: Authors\n---\n", }, }, posts: { - 'hello-world': { - 'index.md': { + "hello-world": { + "index.md": { content: - '---\ntitle: Hello World\n---\nCoffee is a small tree or shrub that grows in the forest understory in its wild form, and traditionally was grown commercially under other trees that provided shade. The forest-like structure of shade coffee farms provides habitat for a great number of migratory and resident species.\n', + "---\ntitle: Hello World\n---\nCoffee is a small tree or shrub that grows in the forest understory in its wild form, and traditionally was grown commercially under other trees that provided shade. The forest-like structure of shade coffee farms provides habitat for a great number of migratory and resident species.\n", }, }, - 'index.md': { - content: '---\ntitle: Posts\n---\n', + "index.md": { + content: "---\ntitle: Posts\n---\n", + }, + news: { + "hello-world-news": { + "index.md": { + content: + "---\ntitle: Hello World News\n---\nCoffee is a small tree or shrub that grows in the forest understory in its wild form, and traditionally was grown commercially under other trees that provided shade. The forest-like structure of shade coffee farms provides habitat for a great number of migratory and resident species.\n", + }, + }, + "index.md": { + content: "---\ntitle: News Articles\n---\n", + }, }, }, - 'index.md': { - content: '---\ntitle: Pages\n---\n', + "index.md": { + content: "---\ntitle: Pages\n---\n", }, }, };