diff options
Diffstat (limited to 'pictures.rb')
-rwxr-xr-x | pictures.rb | 2 |
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("'", ''').gsub('"', '"') : '' html += "alt='#{alt}' src='#{img['url']}'>" + # html += '</section>' end html += '</div>' html += File.read(File.join(SNIPPETS, 'tail.html')) |