diff options
author | pdp8 <pdp8@pdp8.info> | 2024-03-04 13:42:04 +0100 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2024-03-04 13:42:04 +0100 |
commit | 6b40f3b54efabb740e825ba3d94b5695c2b98ede (patch) | |
tree | 2e2fae35cae72f73878cd5295e0f183891e284dc /html.rb | |
parent | 4bd4cb578ee4579eaa81efec4b478654fae8e236 (diff) |
disallow AI bots in robots.txt, mail.rb title, valid rss
Diffstat (limited to 'html.rb')
-rwxr-xr-x | html.rb | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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}"` } |