diff options
author | pdp8 <pdp8@pdp8.info> | 2024-07-29 16:11:54 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2024-07-29 16:11:54 +0200 |
commit | 6ab3d7e33e7b09158b2ccda67c9124e4471a3425 (patch) | |
tree | 3891e587d0d20be1e55ee4a055b672aa10407b39 /pictures.rb | |
parent | cd53a2fe5fc8baf9750fbd2d9b0b4c855d8694a7 (diff) |
section, footer instead of divs
Diffstat (limited to 'pictures.rb')
-rwxr-xr-x | pictures.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pictures.rb b/pictures.rb index 246b0c5..252ca31 100755 --- a/pictures.rb +++ b/pictures.rb @@ -38,7 +38,6 @@ albums.each do |album| before = meta(images[(i - 1) % n], album)[:href] after = meta(images[(i + 1) % n], album)[:href] meta = meta img, album - html = File.read(File.join(SNIPPETS, 'head.html')) html += nav 'pictures' html += "<div class='slide'>" @@ -65,7 +64,7 @@ albums.each do |album| FileUtils.mkdir_p www_dir images = File.readlines(album, chomp: true) n = images.size - html += "<div class='post' id='#{File.basename album}'>" + html += "<section id='#{File.basename album}'>" html += "<h1><a href='#{meta(images.first, album)[:href]}'>#{File.basename(album).gsub('_', ' ')}</a></h1>\n" html += "<div class='gallery'>" @@ -76,7 +75,7 @@ albums.each do |album| html += "src='#{meta[:thumb]}'></a>" end html += '</div>' - html += '</div>' + html += '</section>' end html += File.read(File.join(SNIPPETS, 'tail.html')) print_html 'pictures', html |