acm-sfsu / sfsu.acm.org

http://sfsu.acm.org
5 stars 6 forks source link

Automatic Galleries and Thumbnails #8

Open dreamalligator opened 10 years ago

dreamalligator commented 10 years ago

Proposing add an Images: metadatum(?) to posts and articles. Uses default image path in pelicanconf.py.

Article archive list displays first image listed as thumbnail, if no images, uses either a default or pulls in an author's thumbnail from Gravatar (like in issue #3).

Inside of article, appends automatically via template every image in the array. If five or less images, just appends .. if more, then possibly utilize gallery plugin.

dreamalligator commented 10 years ago

Current usage: Gallery: 2014/02/21 with Template: album. Desired usage: Images: single_img.jpg, Images: [single_img.jpg], Images: [first_image.jpg,second_img.jpg], Images: album/path/goes/here

album.html was changed from an include to a full template (https://github.com/acm-sfsu/pelican-cait/commit/1a17e485bff37be1a72dcd5c0bb675de0902208c). This is temporary.