Skip to content
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

Document sort order options #504

Open
shacker opened this issue Nov 16, 2023 · 3 comments
Open

Document sort order options #504

shacker opened this issue Nov 16, 2023 · 3 comments

Comments

@shacker
Copy link

shacker commented Nov 16, 2023

The documentation for Album Information says we can sort the media in albums with:

Sort: -name

in index.md, but doesn't say what the possible values for Sort can be. I want to sort by date, oldest first. I tried date and -date but those did not have any effect. I then opened one of my images in Mac Preview and looked at the EXIF data in the Info panel. It showed keys like "Date Time Digitized" and "Date Time Original". I tried both of those, with and without quotes, and it had no effect. I then installed a proper EXIF viewer and it showed different key names, like "Original Date and Time" and "Digitized Date and Time." I tried all of those, with and without quotes, and rebuilt after each change, but nothing seems to work - images appear in a random order.

So, I'm confused about what's expected here, surprised that the documentation doesn't say anything about what I'd think would be the most common way people would want to sort, and perplexed that different tools (Preview and AnyExif) show different key names in the EXIF data.

I've searched the github Issues and it seems like others are able to get date sorting working - but how?

@shacker
Copy link
Author

shacker commented Nov 17, 2023

Ah! I just found that setting this:

medias_sort_attr = 'date'

in signal.conf.py does sort by date. So the documented technique of setting it in index.md has no effect, but setting it in the main project conf does. So either this is a bug or documentation update is needed. But I have a way forward. Thanks.

@saimn
Copy link
Owner

saimn commented Nov 22, 2023

It seems Sort: only works for sub-albums currently... and I agree the documentation can be improved.

@shacker
Copy link
Author

shacker commented Nov 23, 2023

Oh - I did eventually figure this out, from a hint in another github issue:

Sort: DateTime

That does work from within index.md! Please consider documenting this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants