summaryrefslogtreecommitdiff
path: root/music.rb
diff options
context:
space:
mode:
Diffstat (limited to 'music.rb')
-rwxr-xr-xmusic.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/music.rb b/music.rb
index c01faf8..de6a7ed 100755
--- a/music.rb
+++ b/music.rb
@@ -7,7 +7,7 @@ html = File.read(File.join(SNIPPETS, 'head.html'))
html += nav 'music'
music.each do |dir|
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>"
html += File.read(File.join(dir, 'README')).chomp.gsub("\n\n", '<p>').gsub("\n", '<br>') # + '<p>'
@@ -40,7 +40,7 @@ music.each do |dir|
"https://pdp8.bandcamp.com/album/#{title.gsub(' ', '-')}"
end
html += "<p>Bandcamp: <a href='#{bc}'>#{bc}</a>"
- html += '</div>'
+ html += '</section>'
end
html += File.read(File.join(SNIPPETS, 'tail.html'))
print_html 'music', html