hexo-hey icon indicating copy to clipboard operation
hexo-hey copied to clipboard

config front-matter

Open VanessaCY opened this issue 10 years ago • 6 comments

Can I customize the configuration?

VanessaCY avatar Jan 22 '16 03:01 VanessaCY

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

nihgwu avatar Jan 22 '16 06:01 nihgwu

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.

Greg-Boggs avatar Feb 04 '16 00:02 Greg-Boggs

image

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

MasterGroosha avatar Feb 09 '16 08:02 MasterGroosha

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

nihgwu avatar Feb 15 '16 06:02 nihgwu

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?

giacomocerquone avatar Apr 16 '16 09:04 giacomocerquone

@giacomocerquone right

nihgwu avatar Apr 17 '16 15:04 nihgwu