mirror of
https://github.com/discourse/discourse.git
synced 2025-06-25 01:30:17 +08:00
FIX: Add helpers for title and content for application.html.erb
and crawler.html.erb
(#32290)
Previously, there was only those helpers in `crawler.html.erb` as we added it in https://github.com/discourse/discourse/pull/32259 However, to keep it consistent, we need to add it in `application.html.erb` as well.
This commit is contained in:
@ -270,7 +270,7 @@ module ApplicationHelper
|
||||
(request ? I18n.locale.to_s : SiteSetting.default_locale).sub("_", "-")
|
||||
end
|
||||
|
||||
def crawlable_title_content
|
||||
def title_content
|
||||
DiscoursePluginRegistry.apply_modifier(
|
||||
:meta_data_content,
|
||||
content_for(:title) || SiteSetting.title,
|
||||
@ -279,7 +279,7 @@ module ApplicationHelper
|
||||
)
|
||||
end
|
||||
|
||||
def crawlable_description_content
|
||||
def description_content
|
||||
DiscoursePluginRegistry.apply_modifier(
|
||||
:meta_data_content,
|
||||
@description_meta || SiteSetting.site_description,
|
||||
|
Reference in New Issue
Block a user