mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
archives: fix for title being set before not found check
This commit is contained in:
parent
fcb2da9166
commit
99cd5d1ab8
1 changed files with 1 additions and 3 deletions
|
@ -39,11 +39,9 @@ end
|
||||||
|
|
||||||
get '/site/:username/archives' do
|
get '/site/:username/archives' do
|
||||||
@site = Site[username: params[:username]]
|
@site = Site[username: params[:username]]
|
||||||
@title = "Site archives for #{@site.title}"
|
|
||||||
not_found if @site.nil? || @site.archiving_disabled
|
not_found if @site.nil? || @site.archiving_disabled
|
||||||
|
@title = "Site archives for #{@site.title}"
|
||||||
@archives = @site.archives_dataset.limit(300).order(:updated_at.desc).all
|
@archives = @site.archives_dataset.limit(300).order(:updated_at.desc).all
|
||||||
|
|
||||||
erb :'site/archives'
|
erb :'site/archives'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue