Sort Order of Albums should be configurable #2
Comments
+1 |
A cool option would be able to sort at least the individual photo galleries by the datetime from the exif data. |
yeah, now that we have access to the EXIF date, it would be a nice option to have. |
Wouldn't we need to pass an object containing the filepath + exif data around instead of just the path? Because it looks like we don't have the necessary information in process_dir, right? I'd personally be interested in filtering photos with an exif tag "private" in a private branch. That should work pretty similar :) |
Or, one could place this configuration in a directories index.md along with the title and thumbnail variables. |
I'm working on a big refactor of the way to store albums and media files in the code, so it will easier to add sort or other options (or maybe plugins). |
This does it, haven't made it configurable yet though. https://github.com/saimn/sigal/blob/master/sigal/writer.py#L170 for d in sorted(paths[relpath]['subdir'],reverse=True): |
Right now the Albums are sorted by the usual Alpha sort, but there should be a more configurable way to do this (e.g. a configuration option in the index.md)
The text was updated successfully, but these errors were encountered: