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

Comments

6 participants
@triplem

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

This comment has been minimized.

Contributor

franek commented Sep 10, 2013

+1

@misilot

This comment has been minimized.

Contributor

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

This comment has been minimized.

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

This comment has been minimized.

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

This comment has been minimized.

reagle commented Feb 12, 2014

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

@saimn

This comment has been minimized.

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

This comment has been minimized.

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