diff --git a/README.md b/README.md index 6281492..031e488 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,10 @@ Inside AstroWind template, you'll see the following folders and files: ``` / +├── data/ +| └── blog/ +| ├── post-slug-1.md +| └── ... ├── public/ │ ├── robots.txt │ └── favicon.ico @@ -64,10 +68,6 @@ Inside AstroWind template, you'll see the following folders and files: │ │ ├── images/ | | └── styles/ | | └── base.css -│ ├── data/ -| | └── posts/ -| | ├── post-slug-1.md -| | └── ... │ ├── components/ │ │ ├── atoms/ │ │ ├── blog/ diff --git a/src/data/.gitkeep b/data/.gitkeep similarity index 100% rename from src/data/.gitkeep rename to data/.gitkeep diff --git a/src/data/posts/astrowind-template-in-depth.md b/data/blog/astrowind-template-in-depth.md similarity index 100% rename from src/data/posts/astrowind-template-in-depth.md rename to data/blog/astrowind-template-in-depth.md diff --git a/src/data/posts/get-started-website-with-astro-tailwind-css.md b/data/blog/get-started-website-with-astro-tailwind-css.md similarity index 100% rename from src/data/posts/get-started-website-with-astro-tailwind-css.md rename to data/blog/get-started-website-with-astro-tailwind-css.md diff --git a/src/data/posts/how-to-customize-astrowind-to-your-brand.md b/data/blog/how-to-customize-astrowind-to-your-brand.md similarity index 100% rename from src/data/posts/how-to-customize-astrowind-to-your-brand.md rename to data/blog/how-to-customize-astrowind-to-your-brand.md diff --git a/src/data/posts/markdown-elements-demo-post.md b/data/blog/markdown-elements-demo-post.md similarity index 100% rename from src/data/posts/markdown-elements-demo-post.md rename to data/blog/markdown-elements-demo-post.md diff --git a/src/data/posts/useful-resources-to-create-websites.md b/data/blog/useful-resources-to-create-websites.md similarity index 100% rename from src/data/posts/useful-resources-to-create-websites.md rename to data/blog/useful-resources-to-create-websites.md diff --git a/src/utils/posts.js b/src/utils/posts.js index 85c1749..eb49cfd 100644 --- a/src/utils/posts.js +++ b/src/utils/posts.js @@ -27,7 +27,7 @@ const getNormalizedPost = async (post) => { }; const load = async function () { - const posts = import.meta.glob('~/data/posts/**/*.md', { + const posts = import.meta.glob('~/../data/blog/**/*.md', { eager: true, });