Author in captions + images
This commit is contained in:
@@ -227,7 +227,10 @@ UI.imageGallery = function (galleryId, images) {
|
||||
if (element) {
|
||||
let gallery = [];
|
||||
for (let img of images) {
|
||||
gallery.push({src: `img/${img.filename}`, description: img.caption});
|
||||
gallery.push({
|
||||
src: `img/${img.filename}`,
|
||||
description: `${img.caption} (${img.author})`
|
||||
});
|
||||
}
|
||||
|
||||
document.querySelector(`#${galleryId}`).addEventListener('click', () => {
|
||||
|
||||
Reference in New Issue
Block a user