SamWhited / typo

This repo has been moved to https://git.sr.ht/~samwhited/typo
Other
29 stars 8 forks source link

Add gallery support #15

Open SamWhited opened 10 years ago

SamWhited commented 10 years ago

Add support for photo galleries in place of individual cover photos. Maybe add plugins for common photo api's. Generate gallery JSON and load that to render gallery.

The page.src attribute can still be used and will be an alt image if the gallery can't be loaded for some reason. Also add a cover photos gallery view to categories and a site wide photos gallery to special pages.

Gallery JSON example:

{
    "images": [{
        "src": "...",
        "thumbnail": "...",
        "caption": "...",
        "title": "...",
        "alt": "..."
    },
    "flickr api URI",
    "Other api URI",
    "Etc."
    ]
}
SamWhited commented 9 years ago

I don't think I'll bother with Flickr or 500px API support, or with making individual posts able to have galleries. Simply a global gallery page and JSON files, and category gallery pages / JSON files.