mirror of
https://github.com/neocities/neocities.git
synced 2025-04-28 11:12:30 +02:00
Merge ffba6fb7e0
into 0c2132fe5e
This commit is contained in:
commit
bd9bff7e10
2 changed files with 2 additions and 2 deletions
2
Rakefile
2
Rakefile
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue