mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 12:34:34 +08:00
FEATURE: add setting to omit category name from topic page title tag
This commit is contained in:
@ -133,7 +133,7 @@ class TopicView
|
||||
|
||||
def page_title
|
||||
title = @topic.title
|
||||
if @topic.category_id != SiteSetting.uncategorized_category_id && @topic.category_id && @topic.category
|
||||
if SiteSetting.topic_page_title_includes_category && @topic.category_id != SiteSetting.uncategorized_category_id && @topic.category_id && @topic.category
|
||||
title += " - #{topic.category.name}"
|
||||
end
|
||||
title
|
||||
|
Reference in New Issue
Block a user