summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--html/style.css3
-rwxr-xr-xpictures.rb2
2 files changed, 4 insertions, 1 deletions
diff --git a/html/style.css b/html/style.css
index eda1548..5331ff7 100644
--- a/html/style.css
+++ b/html/style.css
@@ -99,7 +99,8 @@ footer {
.gallery {
display: flex;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
+ flex-direction: column;
margin: 1em;
}
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'))