I want to have a most recent photo feature on my homepage.
{% for p in page.find('/photography').children.order('date', 'desc').slice(0, 1) %}
The above code finds the most recent page in a blog but what I want to do is find the folder that has the most recent photo in it. My folder structure is like this:
photo gallery
- album 1
-picture1.jpg
-picture2.jpg
- album 2
-picture1.jpg
-picture2.jpg
So when I drop a new photo in one of the folders, I want the homepage to know which folder has the newest file.