Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll up contents of child route folders as arrays rather than objects (or have an option) #3

Open
allthesignals opened this issue Feb 23, 2018 · 1 comment

Comments

@allthesignals
Copy link
Collaborator

allthesignals commented Feb 23, 2018

Jekyll has a concept of posts which are treated as a general iterable collection of items rather than properties of an object. It would be nice to have an option to have these items rolled up as an array, which seems more of a restful approach (intuitively, this is how I expect to use something named posts).

So this:

├─┬ cms
  ├─┬ posts
  | ├── my-post.yaml
  | └── another-post.yaml

Becomes this:

{ cms:
{ 
  posts: [
      { title: 'post-1' },
      { title: 'post-2' },
  ]
}
 }

I'd be interested in your thoughts on this.

@jholt1
Copy link
Owner

jholt1 commented Mar 17, 2018

@allthesignals interesting, will have a look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants