mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: static page title should be consistent on client side and server side
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user