discourse/app/views/layouts/crawler.html.erb

42 lines
1.6 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html lang="<%= SiteSetting.default_locale %>">
<head>
<meta charset="utf-8">
<title><%= content_for?(:title) ? yield(:title) : SiteSetting.title %></title>
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
<%= render partial: "layouts/head" %>
2016-11-15 04:32:59 +08:00
<%- if rtl? %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %>
2016-11-15 04:32:59 +08:00
<%- else %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile : :desktop) %>
<%- end %>
<%- if theme_key %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_theme : :desktop_theme) %>
<%- end %>
<%= theme_lookup("head_tag") %>
<%= render_google_universal_analytics_code %>
<%= yield :head %>
</head>
2016-11-15 04:32:59 +08:00
<body class="crawler">
<%= theme_lookup("header") %>
2015-01-15 17:31:30 +08:00
<header>
2016-11-15 04:32:59 +08:00
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;"></a>
</header>
2015-07-28 16:02:39 +08:00
<div id="main-outlet" class="wrap">
<%= yield %>
</div>
2014-11-12 21:35:20 +08:00
<footer class="container">
<nav itemscope itemtype='http://schema.org/SiteNavigationElement'>
<a href='<%= path "/" %>'><%= t 'home_title' %></a>
<%= link_to t('js.filters.categories.title'), path("/categories") %>
<%= link_to t('guidelines_topic.title'), path("/guidelines") %>
<%= link_to t('tos_topic.title'), path("/tos") %>
2016-01-22 04:55:07 +08:00
<%= link_to t('privacy_topic.title'), path("/privacy") %>
</nav>
<p><%= t 'powered_by_html' %></p>
</footer>
<%= theme_lookup("body_tag") %>
</body>
2016-08-01 13:06:55 +08:00
<%= yield :after_body %>
</html>