mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:53:23 +08:00
f5af4768eb
To setup set DISCOURSE_RELATIVE_URL_ROOT to the folder you wish
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="<%= SiteSetting.default_locale %>">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
|
|
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
|
<%= render partial: "layouts/head" %>
|
|
<%- unless customization_disabled? %>
|
|
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
|
<%- end %>
|
|
<%= render_google_universal_analytics_code %>
|
|
<%= yield :head %>
|
|
<style>
|
|
img { max-width: 100%; width: auto; height: auto; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<%- unless customization_disabled? %>
|
|
<%= SiteCustomization.custom_header(session[:preview_style]) %>
|
|
<%- end %>
|
|
<header>
|
|
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a>
|
|
</header>
|
|
<div id="main-outlet" class="container">
|
|
<%= yield %>
|
|
</div>
|
|
<footer class="container">
|
|
<p><%= t 'powered_by_html' %></p>
|
|
</footer>
|
|
<%= render_google_analytics_code %>
|
|
<%- unless customization_disabled? %>
|
|
<%= raw SiteCustomization.custom_body_tag(session[:preview_style]) %>
|
|
<%- end %>
|
|
</body>
|
|
</html>
|