mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
move viewport meta tag out of shared header
This commit is contained in:
parent
655dd66884
commit
6a6e254096
5 changed files with 3 additions and 2 deletions
|
@ -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 %>">
|
||||
|
||||
|
|
|
@ -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="!">
|
||||
|
|
|
@ -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? %>
|
||||
|
|
|
@ -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? %>
|
||||
|
|
|
@ -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| %>
|
||||
|
|
Loading…
Reference in a new issue