This commit is contained in:
nottnottloop 2025-04-22 22:52:07 -05:00 committed by GitHub
commit bd9bff7e10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ task :generate_sitemap => [:environment] do
site_files = [] site_files = []
sites.each do |site| sites.each do |site|
site.site_files_dataset.exclude(path: 'not_found.html').where(path: /\.html?$/).all.each do |site_file| site.site_files_dataset.exclude(path: 'not_found.html').exclude(path: '404.html').where(path: /\.html?$/).all.each do |site_file|
if site.uri(site_file.path) == site.uri if site.uri(site_file.path) == site.uri
priority = 0.5 priority = 0.5

View file

@ -8,7 +8,7 @@ server {
error_page 404 = @notfound; error_page 404 = @notfound;
location @notfound { location @notfound {
try_files /not_found.html @notfound_root; try_files /not_found.html /404.html @notfound_root;
} }
location @notfound_root { location @notfound_root {