<% title = yield(:title) %> <%= title || community_name.to_s %> <% unless internal_navigation? %> <% if Settings::General.payment_pointer.present? %> <% end %> <%= render "layouts/styles", qualifier: "main" %> <%= javascript_include_tag "base", defer: true %> <% if user_signed_in? %> <%= javascript_packs_with_chunks_tag "base", "Search", "runtimeBanner", "onboardingRedirectCheck", "contentDisplayPolicy", defer: true %> <% else %> <%= javascript_packs_with_chunks_tag "base", "Search", "runtimeBanner", defer: true %> <% end %> <%= yield(:page_meta) %> <%= favicon_link_tag Images::Optimizer.call(Settings::General.favicon_url, width: 32) %> "> "> "> "> " rel="icon" sizes="192x192" /> " rel="icon" sizes="128x128" /> " type="application/opensearchdescription+xml" title="<%= community_name %>" /> " /> <% end %> <% unless internal_navigation? %> <% cache(release_adjusted_cache_key("top-html-and-config--#{user_signed_in?}")) do %> -article-body default-header" data-user-status="<%= j(user_logged_in_status) %>" data-community-name="<%= j(community_name) %>" data-locale="<%= j(I18n.locale) %>" data-honeybadger-key="<%= j(ApplicationConfig["HONEYBADGER_JS_API_KEY"]) %>" data-deployed-at="<%= j(ForemInstance.deployed_at) %>" data-latest-commit-id="<%= j(ForemInstance.latest_commit_id) %>" data-ga-tracking="<%= j(Settings::General.ga_tracking_id) %>"> <%# Repeat of stylesheets in to fix rendering glitch: https://github.com/forem/forem/issues/12377 %> <%= render "layouts/styles", qualifier: "secondary" %>
<% if user_signed_in? %> <%= render "layouts/user_config" %> <% end %>
<%= yield(:audio) %>
<%= render "layouts/top_bar" %>
<% end %> <% end %> <% if Settings::General.payment_pointer.present? %>
<% end %>
<% if flash[:global_notice] %>
<%== flash[:global_notice] %>
<% end %>
<% if @hero_html %> <% end %> <%= yield %>
<% unless internal_navigation? %> <% cache("footer-and-signup-modal-#{user_signed_in?}-#{ForemInstance.deployed_at}-#{Settings::General.admin_action_taken_at&.rfc3339}", expires_in: 24.hours) do %> <%= render "layouts/footer" %> <%= render "layouts/signup_modal" unless user_signed_in? %> <% end %>
<% end %>