-
Notifications
You must be signed in to change notification settings - Fork 106
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
Automate matching between posts slugs and base images folders #60
Conversation
This helps avoiding a mess in the base images folder
I'm not sure that I quite understand what this is intended to do. From what I gather, this is designed to allow your image paths to contain portions of your post's slug, correct me if I'm wrong. While I prefer to just dump all of my images into a single folder, I do see how this could be useful. I currently see two issues with this as it currently stands.
When I tried this on my site, I simply got a
It makes sense, to me, that different preset could be configured for different slugs. This would allow someone to define one preset that works with posts and contains part of the post's slug and one preset that works for any page. Thanks for taking the time to send me a pull request, I really appreciate it. If you'd like to put in some more work to get this merged in, I'd be happy to work with you. |
That's right. My aim is to ease content management. I really would like to put each markdown file in a folder with it's specific assets. I have hundreds of blog posts written since 2001, and as many images that illustrate them. Having everything in one single assets folder is not a realistic option. See this tweet. I want to be able to move a post easily, from drafts to posts for example, or even from one blog to another — yes, I have several… ;-) — so it would be really easier with one single folder.
True, I have to add this!
I also have to handle nonexistent files, you're right.
Or maybe just add a specific option in the settings, with a different path that wouldn't contain any date.
You're right, I'll do this.
Thanks a lot for your valuable feedback, I'll try to push an update to this PR asap! |
Thats great to hear. The point that I was making about nonexistent files is that the plugin currently doesn't handle that at all. If you want to also handle that, thats great but it shouldn't be considered a blocker for getting this change in. |
Ok, I didn't understand that, great! ;-) |
If folders hierarchy is in the preset, don't you think |
I don't see much of a need for |
There is no need for this here anymore, there's now the Jekyll Post Files plugin. |
This helps avoiding a mess in the base images folder