From f3b31abc66118f181ffbbf8bd43a35aa2149d3e8 Mon Sep 17 00:00:00 2001 From: nicholas Date: Tue, 5 Mar 2024 21:37:32 +0000 Subject: [PATCH] Add pages collections --- site/_sidebar.md | 6 +++--- site/admin/config.yml | 12 +++++++++--- site/{ => pages}/Page1.md | 0 site/{ => pages}/Page2.md | 0 site/{ => pages}/Page3.md | 0 5 files changed, 12 insertions(+), 6 deletions(-) rename site/{ => pages}/Page1.md (100%) rename site/{ => pages}/Page2.md (100%) rename site/{ => pages}/Page3.md (100%) diff --git a/site/_sidebar.md b/site/_sidebar.md index 77b06a9..4677e93 100644 --- a/site/_sidebar.md +++ b/site/_sidebar.md @@ -1,5 +1,5 @@ * [HOME](README.md) -* [Page1](Page1.md) -* [Page2](Page2.md) -* [Page3](Page3.md) +* [Page1](pages/Page1.md) +* [Page2](pages/Page2.md) +* [Page3](pages/Page3.md) diff --git a/site/admin/config.yml b/site/admin/config.yml index fe200c0..35e2970 100644 --- a/site/admin/config.yml +++ b/site/admin/config.yml @@ -26,8 +26,8 @@ media_folder: "assets/images" collections: - - label: "Pages" - name: Pages + - label: "Navigation" + name: Navig files: - label: "Landing Page" name: Landing @@ -38,4 +38,10 @@ collections: name: Sidebar file: "_sidebar.md" fields: - - {label: Intro, name: intro, widget: markdown} + - { label: 'Body', name: 'body', widget: 'markdown' } + - label: "Pages" + name: Content + folder: "pages" + create: true + fields: + - {label: "Body", name: "body", widget: "markdown"} diff --git a/site/Page1.md b/site/pages/Page1.md similarity index 100% rename from site/Page1.md rename to site/pages/Page1.md diff --git a/site/Page2.md b/site/pages/Page2.md similarity index 100% rename from site/Page2.md rename to site/pages/Page2.md diff --git a/site/Page3.md b/site/pages/Page3.md similarity index 100% rename from site/Page3.md rename to site/pages/Page3.md