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

73 lines
2.7 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html lang="<%= html_lang %>">
<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-14 14:32:59 -06:00
<%- if rtl? %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %>
2016-11-14 14:32:59 -06:00
<%- else %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile : :desktop) %>
<%- end %>
<%- if theme_ids.present? %>
<%= discourse_stylesheet_link_tag(mobile_view? ? :mobile_theme : :desktop_theme) %>
<%- end %>
<%= theme_lookup("head_tag") %>
<%= render_google_universal_analytics_code %>
<%= yield :head %>
<%= build_plugin_html 'server:before-head-close-crawler' %>
</head>
2016-11-14 14:32:59 -06:00
<body class="crawler">
<%= theme_lookup("header") %>
2015-01-15 03:31:30 -06:00
<header>
<a href="<%= path "/" %>">
2018-11-14 01:03:02 -06:00
<%- if SiteSetting.site_logo_url.present? %>
<img src="<%=SiteSetting.site_logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;">
<%- else %>
<h1><%=SiteSetting.title%></h1>
<% end %>
</a>
</header>
2015-07-28 03:02:39 -05:00
<div id="main-outlet" class="wrap">
<%= yield %>
</div>
<footer class="container wrap">
<nav class='crawler-nav'>
<ul>
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
<span itemprop='name'>
<a href='<%= path "/" %>' itemprop="url"><%= t 'home_title' %> </a>
</span>
</li>
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
<span itemprop='name'>
<a href='<%= path "/categories" %>' itemprop="url"><%= t 'js.filters.categories.title' %> </a>
</span>
</li>
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
<span itemprop='name'>
<a href='<%= path "/guidelines" %>' itemprop="url"><%= t 'guidelines_topic.title' %> </a>
</span>
</li>
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
<span itemprop='name'>
<a href='<%= path "/tos" %>' itemprop="url"><%= t 'tos_topic.title' %> </a>
</span>
</li>
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
<span itemprop='name'>
<a href='<%= path "/privacy" %>' itemprop="url"><%= t 'privacy_topic.title' %> </a>
</span>
</li>
</ul>
</nav>
<p class='powered-by-link'><%= t 'powered_by_html' %></p>
</footer>
<%= theme_lookup("footer") %>
<%= theme_lookup("body_tag") %>
</body>
2016-08-01 00:06:55 -05:00
<%= yield :after_body %>
</html>