laktek / punch

A fun and easy way to build modern websites
http://laktek.github.com/punch
MIT License
1.17k stars 107 forks source link

Image galleries? #104

Open sprugman opened 10 years ago

sprugman commented 10 years ago

Hi,

I'm evaluating using punch for a project that is pretty heavy with image galleries. How does it deal with that issue? I guess my ideal would be something like:

Is this possible/easy? If not are there any static site generators that are good at this?

sprugman commented 10 years ago

Thought of another "nice to have": it would be good to be able to specify meta data about the images somehow, though I suppose worst comes to worst, that could be done in JSON on the client side.

laktek commented 10 years ago

You can define your galleries in JSON format and use that to render the pages (same applies to galleries of galleries). Maybe you can write a custom content handler that would get the image data from a service (eg. Flickr, Dropbox, 500px, etc) or from a local directory and spew out the JSON output dynamically.

However, currently there's no out of the box support for creating thumbnails (or image optimisation). I'd welcome if you like to contribute that feature :)