This script builds a bootstrap carousel from the images on a page whose 'alt' attribute starts with a given keyword .
If there is also one 'feature image' on the page, it will become the first image in the carousel.
(I wrote this script for a template for the Ghost blogging platform because there seemed to be no way to accomplish this server-side.)
A Pen by Aurelien Giraud on CodePen.