layout.erb 2.45 KB
Newer Older
1
2
3
4
5
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
6
7
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta http-equiv="X-XSS-Protection" content="1; mode=block">
8
    <meta http-equiv="Content-Security-Policy" content="default-src 'self'; font-src 'self' fonts.gstatic.com; style-src 'self' fonts.googleapis.com; img-src 'self' learn.totem-project.org; script-src 'self' https://livestats.totem-project.org; connect-src 'self' https://livestats.totem-project.org">
9
10
11
12
    <meta name="viewport"
          content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="Join the totem project to learn more about security on the web">

13
    <!-- Use the title from a page's front matter if it has one -->
14
15
16
17
18
19
20
    <title>
        <% if current_page.data.title %>
            <%= config[:site_title] %> | <%= current_page.data.title %>
        <% else %>
            <%= config[:site_title] %>
        <% end %>
    </title>
Maarten de Waard's avatar
Maarten de Waard committed
21
22
23
    <% ogp_tags do|name, value| %>
    <meta property="<%= name %>" content="<%= value %>" />
    <% end %>
24
25
26
    <% translation_links.each do | loc, url | %>
      <link rel="alternate" hreflang="<%= loc %>" href="<%= url %>" />
    <% end %>
27
28
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
Chris Snijder's avatar
Chris Snijder committed
29
    <link rel="icon" type="image/png" sizes="192x192" href="/android-chrome-192x192.png">
30
31
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="manifest" href="/site.webmanifest">
Chris Snijder's avatar
Chris Snijder committed
32
    <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#003333">
33
34
    <meta name="apple-mobile-web-app-title" content="Totem">
    <meta name="application-name" content="Totem">
Chris Snijder's avatar
Chris Snijder committed
35
36
    <meta name="msapplication-TileColor" content="#003333">
    <meta name="theme-color" content="#f7f7f7">
37
38
    <%= stylesheet_link_tag "style" %>
    <%= javascript_include_tag "index" %>
39
40
41
42
43

    <!-- Custom fonts for this template -->
    <link href="https://fonts.googleapis.com/css?family=Noto+Sans|Ubuntu:500,700" rel="stylesheet" type="text/css">

  </head>
44
  <body dir="<%= config[:locales][I18n.locale][:direction] %>" id="page-top">
45
    <%= partial "partials/nav" %>
46
    <%= yield %>
47
    <%= partial "partials/footer" %>
48
  </body>
49
50
  <%= javascript_include_tag "https://livestats.totem-project.org/piwik.js" %>
  <%= javascript_include_tag "livestats" %>
51
</html>