Please build exe
tyeeman opened this issue · comments
Yes, I would like to try this out. Your site looks great!
I've put a quick release together for you, although this isn't particularly tested - I imagined anyone wanting to use it would want to go tinker a bit with the layout and code to customise it for their own needs.
However, it should get you some way towards being able to produce a gallery site.
Great, much appreciated!
Just getting back to this. It's working good but can I use it on a static server only, like github pages or netlify? I see there is a file called .htaccess which is not used by static site only companies.
Update - Yes works fine on Netlify. One thing I'm noticing is that when viewing all the images of one gallery on the page, they are shown vertically (in columns), not horizontally (rows), ie. image 2 is below image 1, etc. Is there an easy way to make them into rows instead of columns?
the .htaccess is optional, it just sets up some caching and basic filtering. You should be able to use the results on a completely static serving endpoint.
Not sure why it would only display one column; the same code generates https://photography.ishani.org/ and it has the expected 'masonry' style display.
Do you have a site uploaded I can look at? Perhaps there is an error in a JS library loading or something in the developer console we can examine to see why it's not behaving
There are 3 columns but the images are in columns, not rows. Like image1 is top left, image2 is below it, image3 is below image2, etc. Normally images are across from each other, ie. image2 is to the right of image1, image3 is to the right of image2, etc until that row ends and the next row begins. I could give a link but since your app renames all images you can't see their original order and where they are placed.
Ah I see - yes, this is a limitation / by-design of how Bootstrap does card masonry. The 'fix' is to use a different layout library like https://packery.metafizzy.co/ or http://bricklayer.js.org/ or https://masonry.desandro.com/
I might look at that in the future
Thanks for considering it!