mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -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="author" content="">
|
||||||
<meta name="generator" content="Discourse <%= Discourse::VERSION::STRING %> - https://github.com/discourse/discourse version <%= Discourse.git_version %>">
|
<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>
|
<title><%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %></title>
|
||||||
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
<meta name="description" content="<%= @description_meta || SiteSetting.site_description %>">
|
||||||
<%= render partial: "layouts/head" %>
|
<%= 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? %>
|
<%- if SiteSetting.enable_escaped_fragments? %>
|
||||||
<meta name="fragment" content="!">
|
<meta name="fragment" content="!">
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<%= yield :head %>
|
<%= yield :head %>
|
||||||
|
<meta name="viewport" content="width=720, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%- unless customization_disabled? %>
|
<%- unless customization_disabled? %>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<%= yield(:no_js_head) %>
|
<%= yield(:no_js_head) %>
|
||||||
|
<meta name="viewport" content="width=720, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%- unless customization_disabled? %>
|
<%- unless customization_disabled? %>
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
<%= crawlable_meta_data(title: @topic_view.title,
|
<%= crawlable_meta_data(title: @topic_view.title,
|
||||||
description: @topic_view.summary,
|
description: @topic_view.summary,
|
||||||
image: @topic_view.image_url) %>
|
image: @topic_view.image_url) %>
|
||||||
<meta name="viewport" content="width=720, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes">
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<% @topic_view.posts.each do |post| %>
|
<% @topic_view.posts.each do |post| %>
|
||||||
|
|
Loading…
Reference in a new issue