sambecker / exif-photo-blog

Photo blog, reporting 🤓 EXIF camera details (aperture, shutter speed, ISO) for each image.
https://photos.sambecker.com
685 stars 108 forks source link

Photo sorting configuration #29

Closed JaviSoto closed 7 months ago

JaviSoto commented 8 months ago

Hi! I really like this project. I switched my personal website over from Squarespace and I’m really happy with the result :)

One thing I haven’t been able to figure out even looking through the codebase is how the order of photos is controlled. I tried using the “priority order” setting in each photo, but it doesn’t seem to have any effect, whether I use a low or high value.

What am I missing?

Thank you and keep up the great work!

sambecker commented 8 months ago

Thank you for your kind words! This is definitely something we can look into.

priority_order was added to have control over the auto-generated template urls (/template-image, /template-image-tight) but I think it can be generalized.

Which views would you want sorted by priority_order? Anything beyond the home page (/ + /grid)?

JaviSoto commented 8 months ago

Yeah that's the one I was interested in, the main grid in the main page. Setting the priority order of a photo doesn't seem to have any effect for me. How could I help debug this?

sambecker commented 8 months ago

Ok—makes sense. Let me put up a PR to test out.

sambecker commented 8 months ago

@JaviSoto can you try #30 and see if it behaves as expected? LMK!

sambecker commented 7 months ago

Merged!