nihgwu / hexo-hey

an admin plugin for hexo
http://nihgwu.github.io/hexo-hey/
MIT License
208 stars 41 forks source link

config front-matter #22

Open VanessaCY opened 8 years ago

VanessaCY commented 8 years ago

Can I customize the configuration?

nihgwu commented 8 years ago

sorry i don't get you, please describe your needs with more information

Greg-Boggs commented 8 years ago

Prose.io allows you to specify a prose.yml file that tells prose what your front matter fields are and then it uses that info to render the appropriate HTML form items for that front matter. It's a bit buggy with text area, but otherwise, it works well.

MasterGroosha commented 8 years ago

image

When trying to enter some config variables, as described here, editor doesn't understand it and posts look ugly

nihgwu commented 8 years ago

I don't think the front-matter is needed because I have provide a more friendly way in the right-side panel
image

but i think we can detect whether you input the meta data in the post editor directly or from the panel

giacomocerquone commented 8 years ago

Yes, but the problem is that I have two more field to add in the front-matter. Here my tipical configuration:

title: "My title"
excerpt: a little excerpt
tags:
  - tags
categories:
  - category
date: 2015-09-20 23:09:06
photos:
  - photo_of_the_post.jpg

I'd say to add a button to let users add their own fields. Do you think it'd be a good idea?

nihgwu commented 8 years ago

@giacomocerquone right