-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
no image passthroughs when adding permalinks #57
Comments
@autonome I also have images in the same folder as Markdown files, one folder per publication. I use https://github.com/nhoizey/nicolas-hoizey.com/blob/master/.eleventy.js#L171 But I have the exact same folder hierarchy in source and destination, that's not your case (yet?). |
@nhoizey thanks!
Correct. My source is posts/post-title/ and my dest is YYYY/mm/dd/post-title/, accomplished via the Adding permalinks via the |
It doesn't work with Another solution would be to add the image extensions to the I used to use it instead of |
Sorry for not saying earlier - I did this immediately, is pretty much a requirement unless you have all images in a single directory tree that you can add via addPassThroughCopy. I think the solution here is likely that the It should or should not behave according to template processing behavior (which copies all matching It would also be nice to specify it should be a copy vs a transform vs both. For example, the blog I'm migrating is |
Looks like an Eleventy feature request, more than a specific eleventy-base-blog one. Maybe we could move the discussion to the similar issue here: 11ty/eleventy#1140 |
Yes, that's the right place, thanks @nhoizey. Closing this one as it's not specific to the base blog example! |
I'm migrating a blog with images in same directory as my content files (eg, .md and .png in same directory) and permalinks in
YYYY/MM/DD/slug
format... but the images are not getting copied into site output.Eg, add png to the defaults in this repo:
With an input structure in
posts
directory of:And update posts/posts.json with this line:
The output in _site in the permalink dir
2018/09/21/mypost/
has the html output but not the images.Is there a way to do permalinks this way, such that all directory contents are copied?
The text was updated successfully, but these errors were encountered: