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

Sort Order of Albums should be configurable #2

Closed
triplem opened this issue Dec 9, 2012 · 7 comments
Closed

Sort Order of Albums should be configurable #2

triplem opened this issue Dec 9, 2012 · 7 comments
Milestone

Comments

@triplem
Copy link

triplem commented Dec 9, 2012

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)

@franek
Copy link
Contributor

franek commented Sep 10, 2013

+1

@misilot
Copy link

misilot commented Sep 27, 2013

A cool option would be able to sort at least the individual photo galleries by the datetime from the exif data.

@saimn
Copy link
Owner

saimn commented Sep 28, 2013

yeah, now that we have access to the EXIF date, it would be a nice option to have.

@phaer
Copy link
Contributor

phaer commented Dec 7, 2013

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 :)

@reagle
Copy link

reagle commented Feb 12, 2014

Or, one could place this configuration in a directories index.md along with the title and thumbnail variables.

@saimn
Copy link
Owner

saimn commented Feb 13, 2014

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).

@reagle
Copy link

reagle commented Mar 5, 2014

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):

@saimn saimn closed this as completed in befc358 Mar 10, 2014
@saimn saimn added this to the 0.7 milestone May 10, 2014
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

6 participants