Add noscript and og:image tags to other.erb

This commit is contained in:
Thibaut 2015-03-01 11:36:55 -05:00
parent 65a3db7be5
commit de71751bad

View file

@ -5,6 +5,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<% if doc_index_page? %><meta name="description" content="<%= @doc['name'] %> reference documentation with fast, fuzzy search, keyboard shortcuts, mobile version, offline access, and more."><% else %><meta name="robots" content="noindex"><% end %>
<meta name="format-detection" content="telephone=no">
<meta property="og:image" content="http://maxcdn.devdocs.io/images/icon-128.png">
<title>DevDocs<%= ": #{@doc['name']} API Documentation" if doc_index_page? %></title>
<link rel="icon" type="image/x-icon" href="http://maxcdn.devdocs.io/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="Search DevDocs">
@ -13,6 +14,7 @@
<%= javascript_tag 'debug' %><% end %>
<script>app.DOC = <%= @doc.to_json %>;</script>
</head>
<body class="_booting">
<body class="_booting _noscript">
<noscript class="_fail">DevDocs requires JavaScript to run.</noscript>
<%= erb :app %></body>
</html>