mirror of
https://github.com/neocities/neocities.git
synced 2025-05-16 09:27:20 +02:00
move new index mockup to main index
This commit is contained in:
parent
8cb368e584
commit
f2bf9da535
4 changed files with 350 additions and 684 deletions
10
app.rb
10
app.rb
|
@ -57,16 +57,6 @@ error do
|
|||
end
|
||||
|
||||
# :nocov:
|
||||
get '/newindex_mockup' do
|
||||
if SimpleCache.expired?(:sites_count)
|
||||
@sites_count = SimpleCache.store :sites_count, Site.count.roundup(100), 600 # 10 Minutes
|
||||
else
|
||||
@sites_count = SimpleCache.get :sites_count
|
||||
end
|
||||
|
||||
erb :newindex_mockup, layout: false
|
||||
end
|
||||
|
||||
get '/home_mockup' do
|
||||
erb :'home_mockup'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue