easywebhub / easyapp

More information and tutorials, please visit our website
https://easywebhub.com
0 stars 3 forks source link

Consider (.md) files as json files #84

Open baotnq opened 7 years ago

baotnq commented 7 years ago

To merge the process of .md and .json files, consider md files as

json object
{
 "slug" : "",
 "layout" : "",
 ...

"__content" : ""
}
baotnq commented 7 years ago

vẫn giữ nguyên cấu trúc .md như hiện tại nghe. Chỉ là lúc load lên xử lý, convert nó ra dạng json, để xử lý chung cho phần Content Form cũng như Config như cách dùng cho .json như hiện tại.

nemesisqp commented 7 years ago

vậy là y như cũ, mà nếu merge lại hình như banh cái metalsmith-layout, nó load cái content bên dưới rồi tạo biến {{{contents}}}

baotnq commented 7 years ago

chính xác, chỉ sửa lúc hiển thị lên trong EasyBuilder thôi

baotnq commented 7 years ago

ngoài việc hiển thị .md như cấu trúc json, cho phép ẩn | hiện field content của md trong Config