Block browser-update.js in robots.txt. Move noscript block above everything else in application layout.
This commit is contained in:
parent
16c6759818
commit
9c4dc9a966
|
@ -33,6 +33,25 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<noscript data-path="<%= request.env['PATH_INFO'] %>">
|
||||
<header class="d-header">
|
||||
<div class="container">
|
||||
<div class="contents">
|
||||
<div class="row">
|
||||
<div class="title span13">
|
||||
<a href="/"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div id="main-outlet" class="container">
|
||||
<!-- preload-content: -->
|
||||
<%= yield %>
|
||||
<!-- :preload-content -->
|
||||
</div>
|
||||
</noscript>
|
||||
|
||||
<!--[if IE 9]><script type="text/javascript">ie = "new";</script><![endif]-->
|
||||
|
||||
<%- unless customization_disabled? %>
|
||||
|
@ -67,24 +86,6 @@
|
|||
|
||||
<%= render_google_analytics_code %>
|
||||
|
||||
<noscript data-path="<%= request.env['PATH_INFO'] %>">
|
||||
<header class="d-header">
|
||||
<div class="container">
|
||||
<div class="contents">
|
||||
<div class="row">
|
||||
<div class="title span13">
|
||||
<a href="/"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo"></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div id="main-outlet" class="container">
|
||||
<!-- preload-content: -->
|
||||
<%= yield %>
|
||||
<!-- :preload-content -->
|
||||
</div>
|
||||
</noscript>
|
||||
<!-- Discourse Version: <%= Discourse::VERSION::STRING %> -->
|
||||
<!-- Git Version: <%= Discourse.git_version %> -->
|
||||
</body>
|
||||
|
|
|
@ -8,3 +8,4 @@ Disallow: /auth/google/callback
|
|||
Disallow: /auth/yahoo/callback
|
||||
Disallow: /auth/github/callback
|
||||
Disallow: /auth/cas/callback
|
||||
Disallow: /assets/browser-update*.js
|
||||
|
|
Loading…
Reference in New Issue