summaryrefslogtreecommitdiff
path: root/html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'html.rb')
-rwxr-xr-xhtml.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/html.rb b/html.rb
index 171d487..5f45ddc 100755
--- a/html.rb
+++ b/html.rb
@@ -38,7 +38,7 @@ def print_html(basename, html)
end
def music_html
- music = Dir[File.join(MEDIA_DIR, 'music', '*')].sort.reverse
+ music = Dir[File.join(MEDIA_DIR, 'music', '20*')].sort.reverse
html = File.read(File.join(SNIPPETS, 'head.html'))
html += nav 'music'
html += '<div class="post"><a href="https://faircamp.webr.ing/prev/pdp8.info/music.html">← prev</a> |
@@ -46,7 +46,7 @@ def music_html
<a href="https://faircamp.webr.ing/rand">random</a> |
<a href="https://faircamp.webr.ing/next/pdp8.info/music.html">next →</a></div>'
music.each do |dir|
- next if dir.match 'alfadeo'
+ # next if dir.match 'alfadeo'
date = File.basename(dir).split('_')[0]
html += "<div class='post' id='#{date}'>"
@@ -185,5 +185,6 @@ puts `cp "#{File.join(WWW_DIR, last)}" "#{File.join(WWW_DIR, 'index.html')}"`
'540px-PDP-8_.jpg',
'style.css',
'slideshow.js',
- 'robots.txt'
+ 'robots.txt',
+ 'sitemap.txt'
].each { |f| puts `rsync -av "#{File.join(SNIPPETS, f)}" "#{WWW_DIR}"` }