summaryrefslogtreecommitdiff
path: root/pictures.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2024-09-25 23:49:04 +0200
committerpdp8 <pdp8@pdp8.info>2024-09-25 23:49:04 +0200
commite3d8320c7d416219babc9dc46981e9e3f06dfaeb (patch)
treeda5cce379a8aedc0f7ccb18ceb7f49dde31b57a0 /pictures.rb
parentfdf16740af88ffa1d820dd86565e945eeb551072 (diff)
gallery layoutHEADmaster
Diffstat (limited to 'pictures.rb')
-rwxr-xr-xpictures.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/pictures.rb b/pictures.rb
index 89b770c..2758436 100755
--- a/pictures.rb
+++ b/pictures.rb
@@ -14,9 +14,11 @@ Dir[File.join(OUTBOX_DIR, 'create', '*.json')]
.flatten.compact
.select { |a| a['url'] =~ %r{pictures/webp} and a['mediaType'] == 'image/webp' }
.each do |img|
+ # html += '<section>'
html += "<img loading='lazy' "
alt = img['name'] ? img['name'].gsub("'", '&apos;').gsub('"', '&quot;') : ''
html += "alt='#{alt}' src='#{img['url']}'>"
+ # html += '</section>'
end
html += '</div>'
html += File.read(File.join(SNIPPETS, 'tail.html'))