Wiredcraft / jekyllpro-cms

A lightweight CMS for Jekyll websites.
http://jekyllpro.com/#cms
MIT License
7 stars 2 forks source link

Extend schemas to support single files #55

Open hunvreus opened 7 years ago

hunvreus commented 7 years ago

Currently schemas are mostly geared towards helping users create/manage collections: pages, posts...

We should consider starting to support schema declarations that apply to a single file. For example for _config.yml or data files (in the data/ subfolder).

JuhaS commented 7 years ago

@hunvreus how would Jekyll process these files, anything relevant we should know here? We currently have this as part of schema def, what would make sense for these fields (do we even need them?):

  ...
  "jekyll": {
    "type": "content",
    "id": "posts",
    "dir": "_posts"
  },
  ...
hunvreus commented 7 years ago

Probably (also integrating #56);

For the second item I think we have to be explicit with the type of editor; we can't just guess from the file extension what to do.

hunvreus commented 7 years ago

Scratch that: we just need to have a way to list files with an associated Title and Description. It will link to the GitHub edit page.