diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 0bce8b9cdd..540b310011 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -2,7 +2,6 @@ class HomeController < ApplicationController def index - @excellent_topics = Topic.excellent.recent.fields_for_list.limit(20).to_a end def uploads diff --git a/app/models/setting.rb b/app/models/setting.rb index fe59a4b64b..9eaef247c4 100644 --- a/app/models/setting.rb +++ b/app/models/setting.rb @@ -38,7 +38,6 @@ def legecy_envs custom_head_html navbar_html footer_html - index_html wiki_index_html wiki_sidebar_html site_index_html @@ -79,7 +78,7 @@ def legecy_envs # = Basic field :app_name, default: (ENV["app_name"] || "Homeland"), validates: { presence: true } field :timezone, default: "UTC" - # Module [topic,home,team,github,editor.code] + # Module [topic,team,github,editor.code] field :modules, default: (ENV["modules"] || "all"), type: :array # Plugin sort field :sorted_plugins, default: [], type: :array, separator: /[\s,]+/ @@ -160,7 +159,6 @@ def legecy_envs field :custom_head_html, default: "" field :navbar_html, default: "" field :footer_html, default: "" - field :index_html, default: "" field :wiki_index_html, default: "" field :wiki_sidebar_html, default: "" field :site_index_html, default: "" diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb deleted file mode 100644 index fb2b715fc8..0000000000 --- a/app/views/home/index.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -<% if !mobile? %> -
- <%= raw Setting.index_html %> -
-<% end %> - -<% if !@excellent_topics.blank? %> -
-
- <% cache(["home_suggest_topics2", @excellent_topics]) do %> - <% - odd_topics, even_topics = @excellent_topics.partition.each_with_index { |t, i| i.odd? } - %> -
- <%= render TopicComponent.with_collection(even_topics) %> -
- -
- <%= render TopicComponent.with_collection(odd_topics) %> -
- <% end %> -
- -
-<% end %> - -<% if !mobile? %> - <%= render "/shared/hot_locations" %> -<% end %> diff --git a/app/views/shared/_navbar.html.erb b/app/views/shared/_navbar.html.erb index 60a176189d..23a93e3ddb 100644 --- a/app/views/shared/_navbar.html.erb +++ b/app/views/shared/_navbar.html.erb @@ -1,6 +1,6 @@