Implement album sorting
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 #121
This commit is contained in:
BIN
tests/sample/pictures/dir1/test3/.index.md.swp
Normal file
BIN
tests/sample/pictures/dir1/test3/.index.md.swp
Normal file
Binary file not shown.
BIN
tests/sample/pictures/dir1/test3/3.jpg
Normal file
BIN
tests/sample/pictures/dir1/test3/3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 69 KiB |
1
tests/sample/pictures/dir1/test3/index.md
Normal file
1
tests/sample/pictures/dir1/test3/index.md
Normal file
@@ -0,0 +1 @@
|
||||
Title: 01 First title alphabetically
|
||||
Reference in New Issue
Block a user