discourse/app/views/layouts/crawler.html.erb
Gabriel Grubba 12f05181c7
FIX: Add helpers for title and content for application.html.erb and crawler.html.erb (#32290)
Previously, there was only those helpers in `crawler.html.erb` as we
added it in https://github.com/discourse/discourse/pull/32259

However, to keep it consistent, we need to add it in
`application.html.erb` as well.
2025-04-14 16:34:23 -03:00

28 lines
1,022 B
Text
Vendored

<!DOCTYPE html>
<html lang="<%= html_lang %>">
<head>
<meta charset="utf-8">
<title><%= title_content %></title>
<meta name="description" content="<%= description_content %>">
<%= render partial: "layouts/head" %>
<%= render partial: "common/discourse_stylesheet" %>
<%= theme_lookup("head_tag") %>
<%= render_google_universal_analytics_code %>
<%= yield :head %>
<%= build_plugin_html 'server:before-head-close-crawler' %>
</head>
<body class="crawler <% if show_browser_update? %>browser-update<% end %>">
<%= theme_lookup("header") %>
<%= render partial: "layouts/noscript_header" %>
<div id="main-outlet" class="wrap" role="main">
<%= yield %>
</div>
<%= render partial: "layouts/noscript_footer" %>
<%= theme_lookup("footer") %>
<%= theme_lookup("body_tag") %>
<% if show_browser_update? %>
<div class="buorg"><div><%= I18n.t("js.browser_update").html_safe %></div></div>
<% end %>
</body>
<%= yield :after_body %>
</html>