nhoizey / jekyll-postfiles

A Jekyll plugin that copies static files from the _posts to the _site folder
http://nhoizey.github.io/jekyll-postfiles/
MIT License
125 stars 16 forks source link

supporting collections? #10

Open hosnas opened 7 years ago

hosnas commented 7 years ago

Does this plugin also support collections?

DirtyF commented 7 years ago

Not for now, but the same logic could be applied to collections, especially now that Jekyll supports a collection_dir to store all collections in the same directory.

hosnas commented 7 years ago

@DirtyF can you elaborate a little more? you mean with small tweaks we can support collections too?

nhoizey commented 7 years ago

@hosnas it currently doesn't support collections, mostly because I never used any.

@DirtyF how is this new setting helping for this plugin?

DirtyF commented 7 years ago

@nhoizey I guess the plugin could copy files from the _collections folder the same way it copies files from the _posts folder?

hosnas commented 7 years ago

Supporting collection is easy. I can submit a PR for it. However there is a conflict with the way Jekyll currently handles files inside collections, that needs to be addressed first.

hosnas commented 6 years ago

@nhoizey @DirtyF Is the plugin compatible anymore? specially with regard to this PR?

I think this plugin needs an update to support post and collections the same way.

Harrix commented 6 years ago

Support for collections would be very useful. While it is necessary to enter in the settings of posts of a custom type parameter.

---
title: Blabla
categories: [IT]
type: my-collection
---
nhoizey commented 5 years ago

I would like to start working on Collections support, sorry for the delay.

nhoizey commented 5 years ago

It looks like there is another issue to fix in Jekyll first: https://github.com/jekyll/jekyll/issues/6410#issuecomment-454046101

mohkale commented 4 years ago

should be working now, see #47