summaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2022-08-26 13:54:38 +0200
committerpdp8 <pdp8@pdp8.info>2022-08-26 13:54:38 +0200
commit85c6172481beb92b17c89e7c1dfbac4c5b8b3310 (patch)
tree7355fb9b3fbc60110304d466d758091ff3460a63 /html.rb
parentd684a873fce8ed3e19d514839afbf831162c2ed8 (diff)
ForkAwesome reintroduced to fix compatibility of media buttons
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