From 6b40f3b54efabb740e825ba3d94b5695c2b98ede Mon Sep 17 00:00:00 2001 From: pdp8 Date: Mon, 4 Mar 2024 13:42:04 +0100 Subject: disallow AI bots in robots.txt, mail.rb title, valid rss --- html.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'html.rb') 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 += '
← prev | @@ -46,7 +46,7 @@ def music_html random | next →
' music.each do |dir| - next if dir.match 'alfadeo' + # next if dir.match 'alfadeo' date = File.basename(dir).split('_')[0] html += "
" @@ -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}"` } -- cgit v1.2.3