contentlayerdev / contentlayerdev/contentlayer

Support building data from a single file

Đang mở
#38 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
feature
Ngôn ngữ chính
TypeScript
Star
3.5k
Fork
192
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hey, I'm not sure if this is possible already, but I would like to be able to build data from a single file

Example ... `data/projects.json`

There I would have something like:
```json
[
{
"title": "Blueprint",
"description": "Dashboard for creating Android icon packs",
"icon": "/static/images/projects/android/blueprint.png",
"preview": "/static/images/projects/android/blueprint-preview.png",
"link": "https://github.com/jahirfiquitiva/Blueprint/",
"color": "#4d8af0",
"tag": "android",
"stack": [
"android",
"kotlin",
"material design"
]
},
{
"title": "Frames",
"description": "Dashboard for creating Android wallpapers apps",
"icon": "/static/images/projects/android/frames.png",
"preview": "/static/images/projects/android/frames-preview.png",
"link": "https://github.com/jahirfiquitiva/Frames/",
"color": "#35b4ef",
"tag": "android",
"stack": [
"android",
"kotlin",
"material design"
]
}
]
```

And `contentlayer` would be able to return each item as a document of type project, or something like that

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.