Closed ikus060 closed 7 years ago
We don't allow relative files, if it's not in the asset folders it's not processed. Sorry.
Well, this make sense then. May I suggest to add this information into the README file.
@ikus060 yes, I do plan to in the next few days, I also plan on filing a bug in Sprockets as the error you got originates from Sprockets (I don't know if it's because of us or not) so I plan to address both the surface of this issue and the underlying throw that didn't just reject the relative path.
Wouldn't it be awesome if we could put images in the same folder as markdown files?
I'm doing this for my blog: https://github.com/nhoizey/nicolas-hoizey.com/tree/master/_posts/2015/06/24-un-moteur-de-recherche-sur-un-site-statique-facile-avec-algolia
I currently use my own patched version of the picture tag plugin to do this, waiting for #172… ;-)
I have many posts with images, which are almost always used only once, so having all these in assets/
doesn't make any sense, it's painful.
With images in the same folder as the post Markdown file:
I think Jekyll Assets could first watch for images in the post folder, before watching in the global assets/
folder. It would keep existing behaviour, but also let us better organize our assets.
I know I know, I plan to get back to Jekyll Assets and make it more awesome soon, give me a few days.
@envygeeks no worry, it was just food for thoughts, I can't push you while doing nothing to help… ;-)
I am debating doing this tonight. It is mad easy to do, but we must come to a compromise.
If you can concede to me making any imaage or asset available to you but the path being defined by the system I'll build this. Otherwise you just upped the game to a level I'm not willing to deal with (path sanitization, caring about all sorts of other stuff.) If you can concede to those, I can detect non-default paths, strip them down to the asset and just save them, making all your relative paths available wherever you want, but they'll land in the assets folder at the end of the day.
@envygeeks that would already be awesome, thanks a lot!
Consider it done in the next few days then, since I'm free to work on this when I'm bored.
Great, thanks!
By the way, does it mean you will also work on #172, after?
Sorry, just saw you moved it to 3.0.0
That one is iffy for now, but there are plans for responsive images and integrity for assets soon.
Great news, I'll be patient… ;-)
While I would like to support this feature, I kind of think the amount of work it would require is far too high for such little benefit (the community has expressed little interest,) and nobody is willing to sponsor this feature so development time is being put towards other sponsored features.
That said there are also technical difficulties:
manifest
cache
cached
, which uses cache
Hello, I'm trying to use Jekyll-assets. I'Ve having issue to understand how to make reference to a relative path. e.g.: /foo/download.md /foo/my_image.png
In
download.md
, how make references tomy_image.png
? I've try the following but fail with an exception: