<% content_for "header" do %> "> <% if config.default_home != "Trending" %><%= translate(locale, "Trending") %> - <% end %>Invidious <% end %> <%= rendered "components/feed_menu" %>
<% {"Default", "Music", "Gaming", "News", "Movies"}.each do |option| %>
<% if trending_type == option %> <%= translate(locale, option) %> <% else %> <%= translate(locale, option) %> <% end %>
<% end %>

<% trending.each_slice(4) do |slice| %> <% slice.each do |item| %> <%= rendered "components/item" %> <% end %> <% end %>