summaryrefslogtreecommitdiff
path: root/videos.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2024-07-29 16:11:54 +0200
committerpdp8 <pdp8@pdp8.info>2024-07-29 16:11:54 +0200
commit6ab3d7e33e7b09158b2ccda67c9124e4471a3425 (patch)
tree3891e587d0d20be1e55ee4a055b672aa10407b39 /videos.rb
parentcd53a2fe5fc8baf9750fbd2d9b0b4c855d8694a7 (diff)
section, footer instead of divs
Diffstat (limited to 'videos.rb')
-rwxr-xr-xvideos.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/videos.rb b/videos.rb
index 2dd37d7..d2c291e 100755
--- a/videos.rb
+++ b/videos.rb
@@ -7,7 +7,7 @@ html = File.read(File.join(SNIPPETS, 'head.html'))
html += nav 'videos'
videos.each_with_index do |dir, _i|
date = File.basename(dir).split('_')[0]
- html += "<div class='post' id='#{date}'>"
+ html += "<section id='#{date}'>"
title = File.basename(dir).split('_')[1..-1].join(' ')
html += "<h1>#{title}</h1>"
txt = File.read(File.join(dir, 'README'))
@@ -25,7 +25,7 @@ videos.each_with_index do |dir, _i|
</video><p>
"
html += lines.join('<br>')
- html += '</div>'
+ html += '</section>'
end
html += File.read(File.join(SNIPPETS, 'tail.html'))
print_html 'videos', html