Skip to content

Commit

Permalink
Extract data folder to root
Browse files Browse the repository at this point in the history
  • Loading branch information
prototypa committed Sep 11, 2022
1 parent f66e6fd commit fa69a83
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/posts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit fa69a83

Please sign in to comment.