FIX: static page title should be consistent on client side and server side

This commit is contained in:
Arpit Jalan
2018-11-27 21:49:59 +05:30
parent 04558b6ca4
commit bdb1268528
3 changed files with 16 additions and 3 deletions

View File

@@ -105,6 +105,13 @@
<% end %>
<% content_for :head do %>
<%= raw crawlable_meta_data(title: SiteSetting.title, description: SiteSetting.site_description) %>
<% if @title %>
<% content_for :title do %><%= @title %><% end %>
<% content_for :head do %>
<%= raw crawlable_meta_data(title: @title, description: SiteSetting.site_description) %>
<% end %>
<% else %>
<% content_for :head do %>
<%= raw crawlable_meta_data(title: SiteSetting.title, description: SiteSetting.site_description) %>
<% end %>
<% end %>