From b3d1464e43c83eb45b892c154c1a5bcee4d1895b Mon Sep 17 00:00:00 2001 From: DJ Date: Wed, 14 Nov 2018 16:37:31 -0500 Subject: [PATCH] change file structure --- gatsby-config.js | 9 ++++++++- src/pages/{hello-world/index.md => hello-world.md} | 2 +- src/pages/{hi-folks/index.md => hi-folks.md} | 0 .../{my-second-post/index.md => my-second-post.md} | 0 src/{pages/hello-world => uploads}/salty_egg.jpg | Bin 5 files changed, 9 insertions(+), 2 deletions(-) rename src/pages/{hello-world/index.md => hello-world.md} (94%) rename src/pages/{hi-folks/index.md => hi-folks.md} (100%) rename src/pages/{my-second-post/index.md => my-second-post.md} (100%) rename src/{pages/hello-world => uploads}/salty_egg.jpg (100%) diff --git a/gatsby-config.js b/gatsby-config.js index c487d45..e12f93e 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -11,7 +11,14 @@ module.exports = { resolve: `gatsby-source-filesystem`, options: { path: `${__dirname}/src/pages`, - name: 'pages', + name: 'content', + }, + }, + { + resolve: `gatsby-source-filesystem`, + options: { + path: `${__dirname}/src/uploads`, + name: 'uploads', }, }, { diff --git a/src/pages/hello-world/index.md b/src/pages/hello-world.md similarity index 94% rename from src/pages/hello-world/index.md rename to src/pages/hello-world.md index 2d488dd..be59e27 100644 --- a/src/pages/hello-world/index.md +++ b/src/pages/hello-world.md @@ -18,4 +18,4 @@ Oh, and here's a great quote from this Wikipedia on > salted duck eggs have a briny aroma, a gelatin-like egg white and a > firm-textured, round yolk that is bright orange-red in color. -![Chinese Salty Egg](./salty_egg.jpg) +![Chinese Salty Egg](../uploads/salty_egg.jpg) diff --git a/src/pages/hi-folks/index.md b/src/pages/hi-folks.md similarity index 100% rename from src/pages/hi-folks/index.md rename to src/pages/hi-folks.md diff --git a/src/pages/my-second-post/index.md b/src/pages/my-second-post.md similarity index 100% rename from src/pages/my-second-post/index.md rename to src/pages/my-second-post.md diff --git a/src/pages/hello-world/salty_egg.jpg b/src/uploads/salty_egg.jpg similarity index 100% rename from src/pages/hello-world/salty_egg.jpg rename to src/uploads/salty_egg.jpg