summaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'html.rb')
-rwxr-xr-xhtml.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/html.rb b/html.rb
index c4a7a5d..5ab6dae 100755
--- a/html.rb
+++ b/html.rb
@@ -50,13 +50,13 @@ def music_html
Dir[File.join(dir, "*mp3")].each do |mp3|
mp3 = "/" + mp3.sub(ROOT, '')
html += "<tr>"
- html += "<td>#{File.basename(mp3, '.mp3')}</td>"
html += "<td>
<audio controls>
<source src='#{mp3}' type='audio/mpeg'>
</audio>
- </td>
- </tr>"
+ </td>"
+ html += "<td>#{File.basename(mp3, '.mp3')[3..-1]}</td>"
+ html += "</tr>"
end
html += "</table>"
bc = "https://pdp8.bandcamp.com/#{title.gsub(' ', '-')}"
@@ -96,7 +96,7 @@ def video_html
html += "</div>"
html += "<hr>"
end
- html += '<p>&copy; pdp8 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>'
+ html += '<p>&nbsp;&copy; pdp8 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>'
html += File.read(File.join(SNIPPETS, "tail.html"))
print_html "videos", html
end