-
Notifications
You must be signed in to change notification settings - Fork 171
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
Sort albums by 'Date' #121
Comments
I noticed looking back through the old pull requests that it sounds like this isn't a new idea (see #2), is this something that was already completed? |
Hi @jrstarke , |
@jrstarke , +1 for the idea! While for general usage I prefer your second solution, I really see a use case for the first idea, too. Here is my use case at the moment: I use folders sorted by month (like: 2014-10, 2014-09 and so on) and generate a complete gallery from these albums. Then I (manually) create an |
Hello guys. First, thank you about all effort in this project. It's amazing. Now, about this issue, I manage organize albums by date with a simple command in crontab: |
This adds an 'albums_sort_attr' configuration modeled off of the 'medias_sort_attr'. It defaults to the existing behavior of sorting sub-albums by directory name. It allows sort by any metadata attribute stored in the album metadata file. The existing album sort test wasn't really verifying album sorting behavior, so I just re-wrote the whole thing to include tests for the old behavior and new. This should resolve issue saimn#121
Fixed with #192 |
This adds an 'albums_sort_attr' configuration modeled off of the 'medias_sort_attr'. It defaults to the existing behavior of sorting sub-albums by directory name. It allows sort by any metadata attribute stored in the album metadata file. The existing album sort test wasn't really verifying album sorting behavior, so I just re-wrote the whole thing to include tests for the old behavior and new. This should resolve issue saimn#121
I really like this project, and I think there are only a few small things to get it to a point I love it.
One of the things I'd like to be able to do is order my albums by reverse chronological (most recent at the top) so that when a user comes to my page, they see my most recent photos first.
I can think of two ways of achieving this, but I'd like to get your thoughts.
Date
property to the index.md file in the album, and add a configuration flag to sort bydate
to the config. When sorting the albums, if thedate
flag is set, order by this date, or alphabetic if none is available.For complexity reasons, I'm more inclined to 1, but I figured it might be good to get some feedback before attempting to build something.
The text was updated successfully, but these errors were encountered: