diff --git a/app/views/layouts/_head.html.erb b/app/views/layouts/_head.html.erb
index 367f11086..e586fe4cb 100644
--- a/app/views/layouts/_head.html.erb
+++ b/app/views/layouts/_head.html.erb
@@ -1,4 +1,3 @@
-
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 02618bfcf..a99675e83 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -5,6 +5,7 @@
<%= content_for?(:title) ? yield(:title) + ' - ' + SiteSetting.title : SiteSetting.title %>
<%= render partial: "layouts/head" %>
+
<%- if SiteSetting.enable_escaped_fragments? %>
diff --git a/app/views/layouts/crawler.html.erb b/app/views/layouts/crawler.html.erb
index 8775cb8c7..89d713999 100644
--- a/app/views/layouts/crawler.html.erb
+++ b/app/views/layouts/crawler.html.erb
@@ -9,6 +9,7 @@
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
<%- end %>
<%= yield :head %>
+
<%- unless customization_disabled? %>
diff --git a/app/views/layouts/no_js.html.erb b/app/views/layouts/no_js.html.erb
index 64999a392..14ae98869 100644
--- a/app/views/layouts/no_js.html.erb
+++ b/app/views/layouts/no_js.html.erb
@@ -9,6 +9,7 @@
<%= raw SiteCustomization.custom_head_tag(session[:preview_style]) %>
<%- end %>
<%= yield(:no_js_head) %>
+
<%- unless customization_disabled? %>
diff --git a/app/views/topics/plain.html.erb b/app/views/topics/plain.html.erb
index 8da43ff24..7c852a3b6 100644
--- a/app/views/topics/plain.html.erb
+++ b/app/views/topics/plain.html.erb
@@ -6,7 +6,6 @@
<%= crawlable_meta_data(title: @topic_view.title,
description: @topic_view.summary,
image: @topic_view.image_url) %>
-
<% @topic_view.posts.each do |post| %>