summaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'html.rb')
-rwxr-xr-xhtml.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/html.rb b/html.rb
index 49493bd..dd98c7e 100755
--- a/html.rb
+++ b/html.rb
@@ -5,12 +5,11 @@ SNIPPETS = File.join(File.dirname(__FILE__), "snippets")
def nav cat
html = "<nav>"
- html += "<a href='/about.html'><img src='/pdp8.png' id='logo' alt='pdp8'></a>"
+ html += "<a id='logo' href='/about.html'><img src='/pdp8.png' alt='pdp8'></a>"
["music", "pictures", "videos", "code", "contact"].each do |c|
c == cat ? cl = 'item current' : cl = 'item'
html += "<a class='#{cl}' href='/#{c}.html'>#{c}</a>"
end
- # html += '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-sa/4.0/80x15.png" /></a>'
html += "<a id='menu' href='#' onclick='show_vertical_menu()'>"
html += "<div class='fa fa-bars' aria-hidden='true'></div>"
html += "</a>"
@@ -67,6 +66,7 @@ def music_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 += File.read(File.join(SNIPPETS, "tail.html"))
print_html "music", html
end
@@ -96,6 +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 += File.read(File.join(SNIPPETS, "tail.html"))
print_html "videos", html
end