move viewport meta tag out of shared header

This commit is contained in:
Jeff Atwood 2015-01-15 00:24:39 -08:00
parent 655dd66884
commit 6a6e254096
5 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,3 @@
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="author" content="">
<meta name="generator" content="Discourse <%= Discourse::VERSION::STRING %> - https://github.com/discourse/discourse version <%= Discourse.git_version %>">

View file

@ -5,6 +5,7 @@
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
<%= render partial: "layouts/head" %>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<%- if SiteSetting.enable_escaped_fragments? %>
<meta name="fragment" content="!">

View file

@ -9,6 +9,7 @@
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
<%- end %>
<%= yield :head %>
<meta name="viewport" content="width=720, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
</head>
<body>
<%- unless customization_disabled? %>

View file

@ -9,6 +9,7 @@
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
<%- end %>
<%= yield(:no_js_head) %>
<meta name="viewport" content="width=720, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
</head>
<body>
<%- unless customization_disabled? %>

View file

@ -6,7 +6,6 @@
<%= crawlable_meta_data(title: @topic_view.title,
description: @topic_view.summary,
image: @topic_view.image_url) %>
<meta name="viewport" content="width=720, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
</head>
<body>
<% @topic_view.posts.each do |post| %>