diff --git a/Rakefile b/Rakefile index 76b28d86..37850bed 100644 --- a/Rakefile +++ b/Rakefile @@ -105,6 +105,12 @@ task :compile_nginx_mapfiles => [:environment] do end end + File.open('./files/maps/subdomain-to-domain.txt', 'w') do |file| + Site.select(:username, :domain).exclude(domain: nil).exclude(domain: '').all.each do |site| + file.write "#{site.username}.neocities.org #{site.values[:domain]};\n" + end + end + File.open('./files/maps/sandboxed.txt', 'w') do |file| usernames = DB["select username from sites where created_at > ? and parent_site_id is null and (plan_type is null or plan_type='free')", 2.days.ago].all.collect {|s| s[:username]}.each {|username| file.write "#{username} 1;\n"} end diff --git a/views/index.erb b/views/index.erb index 3515316d..79bb39bb 100644 --- a/views/index.erb +++ b/views/index.erb @@ -281,7 +281,7 @@
Sponsored by
Interested in sponsoring Neocities? Let's get in touch.
+Interested in sponsoring Neocities? Let's get in touch.