mirror of
https://github.com/neocities/neocities.git
synced 2025-08-02 15:51:55 +02:00
copy cleanups/improvements
This commit is contained in:
parent
ca428a22da
commit
e00f991c4c
4 changed files with 19 additions and 40 deletions
|
@ -56,6 +56,7 @@ get '/?' do
|
|||
|
||||
@changed_count ||= 0
|
||||
|
||||
=begin
|
||||
if SimpleCache.expired?(:blog_feed_html)
|
||||
@blog_feed_html = ''
|
||||
|
||||
|
@ -73,6 +74,9 @@ get '/?' do
|
|||
else
|
||||
@blog_feed_html = SimpleCache.get :blog_feed_html
|
||||
end
|
||||
=end
|
||||
|
||||
@blog_feed_html = 'The latest news on Neocities can be found on our blog.'
|
||||
|
||||
if SimpleCache.expired?(:featured_sites)
|
||||
@featured_sites = Site.order(:score.desc).exclude(is_nsfw: true).exclude(is_deleted: true).limit(1000).all.sample(12).collect {|s| {screenshot_url: s.screenshot_url('index.html', '540x405'), uri: s.uri, title: s.title}}
|
||||
|
|
|
@ -102,6 +102,7 @@ post '/supporter/update' do
|
|||
end
|
||||
|
||||
get '/supporter/thanks' do
|
||||
@title = 'Supporter Confirmation'
|
||||
require_login
|
||||
erb :'supporter/thanks'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue