summaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
authorpdp8 <pdp8@pdp8.info>2022-08-22 13:57:44 +0200
committerpdp8 <pdp8@pdp8.info>2022-08-22 13:57:44 +0200
commite028591e8142827a878c4f94f561e73d2b888faf (patch)
tree95153e295200d2a8be22a799931dfce35bcba9c7 /html.rb
parente3c672f4648997dbe00624e09c63c990a8ea3596 (diff)
images, contacts, layout
Diffstat (limited to 'html.rb')
-rwxr-xr-xhtml.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/html.rb b/html.rb
index 75caf46..8fa63b7 100755
--- a/html.rb
+++ b/html.rb
@@ -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