perun

Discuss perun static site generator
2019-05-22T23:45:18.023400Z

i’m making an attempt at fixing https://github.com/hashobject/perun/issues/233 myself. the issue is that the images-resize task ignores the source location of image files, and sticks them all under public/. so you get if you have resources/public/1.png and resources/public/images/1.png, you will end up with just target/public/1_{resolutions}.png. and who knows which image that will actually be.

2019-05-22T23:46:02.023800Z

the problem seems to have been introduced in https://github.com/hashobject/perun/pull/205

2019-05-22T23:46:44.024200Z

and i think it comes down to these lines of code: https://github.com/hashobject/perun/blob/master/src/io/perun.clj#L319-L321

2019-05-22T23:54:19.025900Z

it seems like the default behavior, if out-dir is not specified, should be to keep the resized images with the original image. if out-dir is specified, then put the resized images there. (`out-dir` doesn’t seem like a very useful option for this task then)