jekyll-postfiles icon indicating copy to clipboard operation
jekyll-postfiles copied to clipboard

supporting collections?

Open hosnas opened this issue 6 years ago • 10 comments

Does this plugin also support collections?

hosnas avatar Sep 30 '17 13:09 hosnas

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.

DirtyF avatar Sep 30 '17 14:09 DirtyF

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

hosnas avatar Sep 30 '17 15:09 hosnas

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

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

nhoizey avatar Oct 04 '17 12:10 nhoizey

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

DirtyF avatar Oct 04 '17 14:10 DirtyF

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 avatar Oct 04 '17 14:10 hosnas

@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.

hosnas avatar Feb 16 '18 09:02 hosnas

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
---

Harrix avatar Jul 08 '18 08:07 Harrix

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

nhoizey avatar Jan 14 '19 14:01 nhoizey

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

nhoizey avatar Jan 14 '19 15:01 nhoizey

should be working now, see #47

mohkale avatar Jan 03 '20 16:01 mohkale