diff options
Diffstat (limited to 'html.rb')
-rwxr-xr-x | html.rb | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -6,7 +6,7 @@ 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>" - ["music", "pictures", "videos", "code", "newsletter"].each do |c| + ["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 @@ -45,8 +45,7 @@ def music_html html += "<h1>#{title}</h1>" html += File.read(File.join(dir, "README")) + "<p>" cover = File.join("/", dir.sub(ROOT, ''), "cover.jpeg") - html += "<a title='Download cover.jpeg' href='#{cover}' download> - <img src='#{cover}' alt='cover'></a> + html += "<img id='cover' src='#{cover}' alt='cover'> <p>" Dir[File.join(dir, "*mp3")].each do |f| f = "/" + f.sub(ROOT, '') @@ -131,10 +130,10 @@ end music_html video_html -["about", "code", "pictures", "newsletter"].each do |basename| +["about", "code", "pictures", "contact"].each do |basename| file_html basename end -["pdp8.png", "style.css", "distances.js", "images.js"].each { |f| `rsync -av "#{File.join(SNIPPETS, f)}" "#{ROOT}"` } +["pdp8.png", "540px-PDP-8_.jpg", "style.css", "distances.js", "images.js"].each { |f| `rsync -av "#{File.join(SNIPPETS, f)}" "#{ROOT}"` } `rsync -av #{File.join(SNIPPETS, "Fork-Awesome-1.2.0")} "#{ROOT}"` # rss |