diff options
Diffstat (limited to 'html.rb')
-rwxr-xr-x | html.rb | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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>© pdp8 <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>' + html += '<p> © 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 |