Skip to content

Commit 07e53aa

Browse files
committed
Add Caption/Title to Image Gallery
1 parent 31ae6e8 commit 07e53aa

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

_albums/2025-10-01-common-kingfisher.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ tags:
88
output: true
99

1010
header:
11-
overlay_image: https://live.staticflickr.com/65535/54896935600_b4a651b63c_o.jpg
11+
overlay_image: https://live.staticflickr.com/65535/54897216900_2f8a6525ab_h.jpg
1212
caption: "Photo credit: [**Robert de Veen**](https://robertdeveen.com)"
1313
show_overlay_excerpt: false
14-
teaser: https://live.staticflickr.com/65535/54896850696_f8af8a5a96_o.jpg
14+
teaser: https://live.staticflickr.com/65535/54897216900_c7cf6c3709.jpg
1515

1616
---
1717
<style>
1818
.page__hero--overlay {
19-
background-position: 0 25% !important;
19+
background-position: 0 35% !important;
2020
}
2121
</style>
2222

_includes/image-gallery-index.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

_plugins/indii-jekyll-flickr.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ def cache_store
232232
def gen_thumb_html
233233
content = ''
234234
if self.url_full and self.url_thumb
235-
content = "<a href=\"#{self.url_full}\" data-lightbox=\"photoset\"><img src=\"#{self.url_thumb}\" alt=\"#{self.title}\" title=\"#{self.title}\" class=\"photo thumbnail\" /></a>\n"
235+
content = "<a href=\"#{self.url_full}\" title=\"#{self.title}\" data-lightbox=\"photoset\"><img src=\"#{self.url_thumb}\" alt=\"#{self.title}\" title=\"#{self.title}\" class=\"photo thumbnail\" /></a>\n"
236+
# if self.title and self.title != ''
237+
# content += "<figcaption>#{self.title}</figcaption>\n"
238+
# end
236239
end
237240
return content
238241
end

0 commit comments

Comments
 (0)